RE: Subversion checkout behavior at non-existent revision
From: Tati, Aslesh <atati_at_barclaycardus.com>
Date: Mon, 9 May 2016 13:36:31 +0000
Hello Stefan,
I should have mentioned the subversion server and the client version in my initial email. These are the server and the client versions that I'm using.
svnadmin --version
svn --version
Thanks,
From: Stefan Hett [mailto:stefan_at_egosoft.com]
Hi Aslesh,
I have a question about the behavior of svn checkout. Here is the scenario:
Now I'm trying to check out the branch at revision 500. I know that the branch doesn't exist at r500 (it will be some higher revision), only trunk does and it probably doesn't make sense to check out a branch at that revision; but I'm interested in knowing why this behavior occurs and if it is expected.
svn co <REPO_URL>/branches/<BRANCH>@500 --> svn info on that gives the URL as expected i.e. <REPO_URL>/branches/<BRANCH>
svn co -r 500 <REPO_URL>/branches/<BRANCH> --> svn info on that gives an unexpected result i.e. <REPO_URL>/trunk
Shouldn't subversion complain that the branch doesn't exist at revision 500?
For the first test (aka: co with a peg-revision prior to the creation of the branch) I'm getting the expected svn error: "svn: E170000: URL '<REPO_URL>/branches/<BRANCH>' doesn't exist".
The second case brings up some different behavior on my test run too - and I can't quite make out much sense here (even after refreshing my memories re-reading the peg revision algorithm):
(note: r1 was the initial creation of trunk/branches/tags folders in my test repository --- 'a' was the name of the test branch I created)
However, that then working directory in a subdirectory E:\test\a (instead of one in E:\test).
TBH I would have expected the same outcome as you are describing (aka: some error, since the branch to be checked-out is not present in the given operative revision).
I take it there are two separate questions at hand here:
-- Regards, Stefan Hett Barclaycard www.barclaycardus.com<http://www.barclaycardus.com> This email and any files transmitted with it may contain confidential and/or proprietary information. It is intended solely for the use of the individual or entity who is the intended recipient. Unauthorized use of this information is prohibited. If you have received this in error, please contact the sender by replying to this message and delete this material from any system it may be on.Received on 2016-05-09 15:36:49 CEST |
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.