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

Re: [Issue 1273] Changed - svn cp corrupts *two* repositories

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-04-30 20:41:01 CEST

Philip Martin <philip@codematters.co.uk> writes:

> Should I be able to copy a file into a working copy from an unrelated
> repository?
>
> If I copy a file from a repository into a working copy should it
> record copyfrom history?
>

Ahhh, right... I was working on this issue recently.

The way 'svn cp URL wc' works now is:

  * in the case of a single file, do an RA->get_file(), and examine
    the two repository UUIDs. If they match, schedule the file for
    addition-with-history. Otherwise just schedule for addition.

  * in the case of a directory, check the UUIDs. If they match, then
    do a checkout and schedule the tree for addition-with-history. If
    they don't match, then bail out with SVN_ERR_UNSUPPORTED_FEATURE.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 30 20:42:38 2003

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.