qwe
qwe

Reputation: 175

SVN checkout/update --revision - Real difference between them when it's needed do rollback

I have 2 commands (from documentation):

$ svn checkout --revision 1729 # Checks out a new working copy at r1729
…
$ svn update --revision 1729 # Updates an existing working copy to r1729

What is the practical difference between them related to rollback needs? I understand that "svn checkout will create new workcopy, when svn update updates existing one" but what does it mean in practice?

Will I need resolve conflicts after any of this operations or not?

Upvotes: 3

Views: 616

Answers (1)

bahrep
bahrep

Reputation: 30662

First of all, read the documentation: Version Control with Subversion 1.8. I suggest reading the documentation just because SVNBook has a special section that should answer your question: SVNBook | Fetching Older Repository Snapshots.

  • svn checkout --revision 1729 will create a new working copy at revision 1729. This will require to transfer all the data from the server.
  • svn update --revision 1729 will update an existing working copy to revision 1729. Only changes between the working copy's BASE and rev 1729 will be downloaded in this case.

In case of svn update you may be required to solve conflicts if you have local & uncommitted modifications in the working copy.

Upvotes: 3

Related Questions