TobyD Posted May 16, 2009 Report Share Posted May 16, 2009 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 Quote Link to comment
asbo Posted May 16, 2009 Report Share Posted May 16, 2009 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. Quote Link to comment
TobyD Posted May 19, 2009 Author Report Share Posted May 19, 2009 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. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.