question: how to change and revert files easily

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
marvalis
Uruivellas
Posts: 683
Joined: Sun Sep 05, 2010 5:11 am

question: how to change and revert files easily

#1 Post 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

Final Master
Sher'Tul
Posts: 1022
Joined: Fri May 21, 2010 8:16 pm
Location: Inside the minds of all
Contact:

Re: question: how to change and revert files easily

#2 Post by Final Master »

It's tedious, but it's best to work on only 1 file at a time, save, check/test - then continue.
Final Master's Character Guides
Final Master's Guide to the Arena
Edge: Final Master... official Tome 4 (thread) necromancer.
Zonk: I'd rather be sick than on fire! :D

Marcotte
Wyrmic
Posts: 203
Joined: Sat Jan 26, 2008 1:12 am

Re: question: how to change and revert files easily

#3 Post 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).

edge2054
Retired Ninja
Posts: 3756
Joined: Fri May 28, 2010 4:38 pm

Re: question: how to change and revert files easily

#4 Post by edge2054 »

SVN lets you revert as well.

yufra
Perspiring Physicist
Posts: 1332
Joined: Tue Jul 13, 2010 2:53 pm

Re: question: how to change and revert files easily

#5 Post 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...
<DarkGod> lets say it's intended

edge2054
Retired Ninja
Posts: 3756
Joined: Fri May 28, 2010 4:38 pm

Re: question: how to change and revert files easily

#6 Post 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.

Post Reply