Reputation: 504
I'm working on utility creation. I have to update the particular revision of source programatically. Please suggest me your ideas.
Thanks in advance.
Upvotes: 0
Views: 848
Reputation: 3088
I do not think version control management like svn would allow "Update to particular version", Because changes(commits) are meant to be stored as versions.
Making changes to a particular version breaks the core principle of version control management, So I do not think there can be a way to "Update to particular version"
You may checkout particular version...
If you want to do update via program...pls refer to the below link.. http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.update.html
Also have a look at the following link for updating working copy:- http://svnbook.red-bean.com/en/1.7/svn-book.html#svn.tour.cycle.update
Command :-
SVN Update
Examples
svn update
A newdir/toggle.c
A newdir/disclose.c
A newdir/launch.c
D newdir/README
Updated to revision 32.
You can also “update” your working copy to an older revision..
svn update -r30
A newdir/README
D newdir/toggle.c
D newdir/disclose.c
D newdir/launch.c
U foo.c
Updated to revision 30.
Upvotes: 1