[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Issues with svn copy

From: Greg Goodrich <ggoodrich_at_medinotes.com>
Date: 2004-09-21 19:34:10 CEST

I've scanned through the mailing list, and may have come up with some
similar circumstances to my question, but nonetheless, I wish to point
out what I consider a "strange" behaviour of the svn copy command.

My issues thus far are encapsulated in my efforts to convert from VSS to
Subversion, and therefore the copy command that I'm running is
"generated" by a script. This may or may not be useful background info.

Given a repository:

dev
  |
  -- tags
  |
  -- trunk
        |
        -- Charting
                |
                -- cp32
                |
                -- Notebuilder
        |
        -- Utilities
                |
                -- UserMan

All "nodes" are folders in the above tree.
If I now do the following command:

    svn copy --message "version" $repos/trunk/Charting
$repos/tags/V4.4.2/Charting

What I get is a V4.4.2 folder under tags, with cp32 and Notebuilder
folders under V4.4.2. This seems strange, but not necessarily incorrect.

Now, if I run basically the SAME command, with a different source "folder":

    svn copy --message "version" $repos/trunk/Utilities
$repos/tags/V4.4.2/Utilities

I would expect consistent behavior of this, and thus would expect to
have a UserMan folder directly under V4.4.2. This, however, is not the
case. Instead I have a Utilities folder under V4.4.2. This is the
behaviour that I desire to have, but I would prefer it to be consistent
with the first situation where the V4.4.2 directory didn't yet exist.
Nonetheless, can this inconsistency be explained? I've read that this
commad mimics the unix cp command, but it doesn't seem to to me. I've
never noticed such an inconsistency when using unix cp (12+ years of
it), though I don't usually use the recursive option to cp.
A new subtree after running the two commands follows:

tags
  |
  -- V4.4.2
        |
        -- cp32
        |
        -- Notebuilder
        |
        -- Utilities

-- 
*Greg Goodrich*
Development Manager
*MediNotes Corporation*
1025 Ashworth Road, Suite 222
West Des Moines, IA 50265
Phone: 515.327.8850 ext. 251/
/Fax: 515.327.8856
	
<http://www.medinotes.com>
*Charting Plus - "The Best EMR Value on the Market!"
**www.medinotes.com* <http://www.medinotes.com/>
 
Received on Tue Sep 21 19:34:33 2004

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.