Thursday, July 12, 2012

Using changelist for SVN

Changelist is useful for organizing your code changes when you're working on more than one projects. You can mark files with different changelist flags to keep them organized.

For example, we changed three files for ticket 66, and then commit them all together later:
$ svn changelist ticket66 a.py b.py c.py
Path 'a.py' is now a member of changelist 'ticket66'.
Path 'b.py' is now a member of changelist 'ticket66'.
Path 'c.py' is now a member of changelist 'ticket66'.
$ svn status
A       someotherfile.py
A       test/sometest.py

--- Changelist 'ticket 66':
A       a.py
A       b.py
A       c.py
$ svn commit --changelist ticket66 -m "Fixing ticket 66."
Adding         a.py
Adding         b.py
Adding         c.py
Transmitting file data ...
Committed revision 2.

1 comment:

  1. A really very nice blog about programming solutions you are giving the out the information in the best way.. i liked your post and the website as well..

    ReplyDelete