Re: "svn copy -rHEAD" copies the wrong version.
From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-10-07 23:39:52 CEST
Philip Martin wrote:
It's on the way :-)
As I mentioned in the same e-mail, I found other, related bugs, namely that "-r" doesn't work with BASE, COMMITTED or PREV with a local source. What I didn't say is that I have written a reproduction script (below) which I intend to convert into regression tests, and it covers -rHEAD as well as the other cases.
I thought I'd get that simple fix in first because the others are significantly more difficult.
Thanks for being on the ball and advocating the Right Way.
- Julian
[[[
set -e
# Now we have a repository and a WC, start playing in the WC.
# cp_from_rev FILE EXPECTED_REV
# cp_test DST FROM_REV_EXPECTED CP_ARGS
set +e
cp_test a1 2 -rHEAD &&
cp_test a2 1 -rBASE &&
cp_test a3 1 -rCOMMITTED &&
cp_test a4 0 -rPREV # should fail: file did not exist at r0
rm a &&
---------------------------------------------------------------------
|
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.