Re: svn cp treats filename as directory name
From: Steve Strobel <steve.strobel_at_link-comm.com>
Date: Tue, 07 Oct 2008 11:50:13 -0600
>I also noticed that when the Makefile "reappears" in revision 233
I thought I figured out how to make the svn cp work like I want it to. The key observation was that the history of /trunk does not include rev 232:
r303 | (no author) | 2008-10-07 08:24:09 -0600 (Tue, 07 Oct 2008) | 1 line
Before the remote copy in rev 233, I think I deleted everything in the trunk. That means
svn ls -r232 svn://192.168.25.29/trunk/linux-2.6.x/sound/blackfin/Makefile # as before
svn ls -r232 svn://192.168.25.29/trunk/linux-2.6.x/sound/blackfin/Makefile_at_232 # add peg revision
svn ls svn://192.168.25.29/trunk/linux-2.6.x/sound/blackfin/Makefile_at_232 # remove -r
That seems to work. Trying adding the peg revision with the svn cp command:
svn cp -r232 svn://192.168.25.29/trunk/linux-2.6.x/sound/blackfin/Makefile_at_232 svn://192.168.25.29/trunk/linux-2.6.x/sound/blackfin/Makefile -m "Copying from rev 232 to maintain history of the files we changed."
Not only did that not do what I hoped, it brought back the goofy error message with Makefile being used as both the file and directory name. I thought that upgrading the Subversion client had fixed that problem. Trying without -r:
svn cp svn://192.168.25.29/trunk/linux-2.6.x/sound/blackfin/Makefile_at_232 svn://192.168.25.29/trunk/linux-2.6.x/sound/blackfin/Makefile -m "Copying from rev 232 to maintain history of the files we changed."
What is the correct syntax to copy (with history) that Makefile as it existed in the trunk in rev 232 to the head? If it was just this one file, I could use svn log with the peg revision to figure out when it last changed (apparently rev 101 in this case, see below) and copy that version, but this part of a script and I need to do it for a number of files.
svn log svn://192.168.25.29/trunk/linux-2.6.x/sound/blackfin/Makefile_at_232
Thanks for any suggestions,
--- Steve Strobel Link Communications, Inc. 1035 Cerise Rd Billings, MT 59101-7378 (406) 245-5002 ext 102 (406) 245-4889 (fax) WWW: http://www.link-comm.com MailTo:steve.strobel_at_link-comm.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org For additional commands, e-mail: users-help_at_subversion.tigris.orgReceived on 2008-10-07 19:50:53 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.