Jump to content

Subversion svn checkout vs. update


Recommended Posts

In the little bit of testing that I have done, it seems that when svn checkout is run on a pre-existing working copy it acts just like svn update. I can't find any "official" reference to this in the manual or googling.

Can anyone confirm or dispute this claim? The only difference I see is that svn checkout requires an explicit URL?

I am in a situation where I would like TestStand to pull the latest files from a subversion repository before each test begins. If calling svn checkout will not cause any problems then it greatly reduces the code I have to write. I can do one simple "checkout" which will either checkout or update depending on the state of the build tree (I don't have to try to figure out if a working copy already exists).

Thanks,

Toby

Link to comment

I tested by checking out a repository one revision back, then checking out again with the same target and no revision specified - it was, in fact, smart enough to update the working copy instead of re-checking out everything.

Link to comment

QUOTE (asbo @ May 15 2009, 10:56 AM)

I tested by checking out a repository one revision back, then checking out again with the same target and no revision specified - it was, in fact, smart enough to update the working copy instead of re-checking out everything.

Thanks. That's what my testing showed too, so I guess I'll go with the checkout command to simplify my code unless I hear about or discover a good reason not to do it that way.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.