Page 1 of 1

question: how to change and revert files easily

Posted: Tue Feb 15, 2011 4:42 am
by marvalis
Right,

Is there a way to easily change the files, but also revert them without having to handle each file seperatly. In other words, is there such a thing as a program that tracks all these changes, allows you to save, change, or load several files at once?

For example, I am editing combat.lua, talents.lua, etc etc. Something does not work, then I need to revert those changes. If I could do that with one click of the mouse... that would help my workflow significantly.

thanks

Re: question: how to change and revert files easily

Posted: Tue Feb 15, 2011 4:52 am
by Final Master
It's tedious, but it's best to work on only 1 file at a time, save, check/test - then continue.

Re: question: how to change and revert files easily

Posted: Tue Feb 15, 2011 5:00 am
by Marcotte
There are version-control program, such as SVN (used for the development repository of ToME) or git (which I personally use). I'm not sure for SVN, but with git, you can revert all of your non-committed changes with a single command (git stash).

Re: question: how to change and revert files easily

Posted: Tue Feb 15, 2011 5:28 am
by edge2054
SVN lets you revert as well.

Re: question: how to change and revert files easily

Posted: Tue Feb 15, 2011 6:05 am
by yufra
edge2054 wrote:SVN lets you revert as well.
SVN permanently moves you back to the clean version, whereas "git stash" lets you store the modified version, move back to the clean version, and then with "git stash apply" move back to the modified version again. Depends on what you want...

Re: question: how to change and revert files easily

Posted: Tue Feb 15, 2011 6:14 am
by edge2054
Tortoise SVN at least saves your branches when you revert. So if I commit something, revert, and then decide I want to go back to that branch later I can.

I think Marv is on Linux though so Tortoise probably isn't an option and even if it is there's probably something less temperamental he can use.