Working with incomplete WC, or no WC [was: Re: Abolish instant-commit commands]
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-11-15 17:06:43 CET
Branko Čibej wrote:
... your point being, presumably, that the second version requires so much data transfer as to make it impractical, and a bit more typing too.
OK, I was being over-dramatic when I suggested "abolishing" the existing instant-commit commands. I concede that it is necessary to have a way to do operations like this directly on the repository and, for the time being, those commands are the means to do it.
My point is that if the action that you want to perform is not a single copy or propset or mkdir, but a combination of any two or more of those (e.g. you want to set a custom property on your branch) then the instant-commit syntax cannot do it in one commit. We ought to consider providing some mechanism for building up a multi-part transaction without a working copy - or at least without a complete working copy.
"svn checkout --non-recursive" is probably the way to go, but I am not sure to what extent Subversion can cope with an incomplete working copy through a full cycle of checkout+modify+commit. I got stuck at the first hurdle: after a non-recursive checkout (which gets all of the files but none of the subdirectories) I have not managed to get a subdirectory. I tried "svn update subdir" and "svn copy URL subdir" and "svn checkout URL subdir". The test script is attached, and the output from these attempts is shown below.
+ svn list -vR
+ svn update subdir
+ svn copy file:///home/julianfoad/tmp/incomplete-wc/repos/subdir .
+ svn checkout file:///home/julianfoad/tmp/incomplete-wc/repos/subdir
Each of "copy" and "checkout" creates a directory "subdir" and "subdir/.svn", but does not integrate it into its parent or populate it. The WC is not reported as Locked before or after these attempts.
Perhaps this is possible but I'm not trying the right way?
- Julian
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.