svn - How do I revert a file in a working copy to an older revision and then commit it back to the repository? -


what process reverting files , folders earlier revision in svn using windows tortoisesvn client?

i've have tried right-clicking file in working copy , selecting "update revision..." command , specifying revision number want, can't commit change repository thinks nothing has changed in working copy.

if make minor change file in question errors when attempting commit repository saying it's out of date?

so i'm unsure of process of reverting files, 1 of main benefits of having version control system seems pretty major don't know how it!?

update revision merely makes working copy show revision have selected, not modify current revision. want use revert.

to this, view log file (right-click/tortoisesvn/show log), right-click on revision want in log messages window, , select revert revision.

then, review change(s), make sure liking, , commit.

more details here:

you can commit items up-to-date respect repository. if 'update revision' switches working copy old revision state. not useful except snapshot of working copy looked in previous life. far svn concerned, files unmodified (assuming unmodified before update-to-rev), out of date.

"revert revision" reverse merge of recent revisions working copy. svn considers up-to-date working copy local changes happen make same earlier revision. because up-to-date allowed


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -