You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Miller, Eric" <Er...@amd.com> on 2007/04/05 20:23:48 UTC
rm -> ci -> cp bug?
Can someone verify this for me?
svn del <dir>
svn ci -m '' <dir>
svn cp . <tag url> <----- fails with 'missing <dir>' error.
I'm using 1.4.2.
I assume the meta data in ./.svn is not getting updated by the deletion?
Maybe this is fixed already in 1.4.3?
Thanks,
Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: rm -> ci -> cp bug?
Posted by Jeff D <fi...@gmail.com>.
On Thu, 5 Apr 2007, Miller, Eric wrote:
> Can someone verify this for me?
> svn del <dir>
> svn ci -m '' <dir>
> svn cp . <tag url> <----- fails with 'missing <dir>' error.
>
> I'm using 1.4.2.
>
> I assume the meta data in ./.svn is not getting updated by the deletion?
> Maybe this is fixed already in 1.4.3?
>
> Thanks,
> Eric
>
I just did some tests with both 1.4.2 and 1.4.3, both behave the same way,
issuing a svn up after the ci seems to fix it though:
$ ls
1 2
$ svn ls
1/
2/
$ svn del 1
D 1
$ svn ci -m 'remove 1'
Deleting dev/1
Committed revision 42.
$ svn cp . $rep/tags/testdel -m 'test del'
svn: Commit failed (details follow):
svn: Directory '/tmp/rep/trunk/dev/1' is missing
$ svn up
At revision 42.
$ svn cp . $rep/tags/testdel -m 'test del'
Committed revision 43.
-+-
8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: rm -> ci -> cp bug?
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Apr 5, 2007, at 20:08, Miller, Eric wrote:
>> IMHO, this is not a bug. The directory <dir> is *really* missing
>> in this revision. If you want to copy . at a revision where <dir>
>> has been removed, you need to update it with "svn up".
>
> I know what you mean, but if you do a status after the commit nothing
> shows up as "missing".
>
> Sorry, I forgot to enumerate that step:
>
> svn del <dir>
> svn ci -m '' <dir>
> svn st -uN <----- shows *no* changes, nothing missing
> svn cp . <tag url> <----- fails with 'missing <dir>' error.
>
> There is a bug *somewhere* in there. I'm betting that the commit
> failed
> to update the parent container's meta-data.
As far as I know, a commit is not meant to update the parent
container's metadata. That's what the update command is for.
> Also - before you say do an update, consider this:
> I may be creating a tag (or branch) because I see some updates or
> conflicts coming and I just want an easy place to resume my edits. An
> update would be BAD.
Ah.
--
To reply to the mailing list, please use your mailer's Reply To All
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: rm -> ci -> cp bug?
Posted by Vincent Lefevre <vi...@vinc17.org>.
On 2007-04-05 18:08:27 -0700, Miller, Eric wrote:
> Sorry, I forgot to enumerate that step:
>
> svn del <dir>
> svn ci -m '' <dir>
> svn st -uN <----- shows *no* changes, nothing missing
> svn cp . <tag url> <----- fails with 'missing <dir>' error.
>
> There is a bug *somewhere* in there.
Yes, there seems to be an inconsistency. For instance, if you do a
"svn mkdir <dir>" instead of a svn del, then the svn cp does not fail
and the new directory is taken into account in the tag URL. So,
shouldn't the behavior be similar in the case of a svn del?
--
Vincent Lefèvre <vi...@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: rm -> ci -> cp bug?
Posted by "Miller, Eric" <Er...@amd.com>.
> -----Original Message-----
> From: Vincent Lefevre [mailto:vincent+svn@vinc17.org]
>
> IMHO, this is not a bug. The directory <dir> is *really* missing
> in this revision. If you want to copy . at a revision where <dir>
> has been removed, you need to update it with "svn up".
>
I know what you mean, but if you do a status after the commit nothing
shows up as "missing".
Sorry, I forgot to enumerate that step:
svn del <dir>
svn ci -m '' <dir>
svn st -uN <----- shows *no* changes, nothing missing
svn cp . <tag url> <----- fails with 'missing <dir>' error.
There is a bug *somewhere* in there. I'm betting that the commit failed
to update the parent container's meta-data.
Also - before you say do an update, consider this:
I may be creating a tag (or branch) because I see some updates or
conflicts coming and I just want an easy place to resume my edits. An
update would be BAD.
Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: rm -> ci -> cp bug?
Posted by Vincent Lefevre <vi...@vinc17.org>.
On 2007-04-05 13:23:48 -0700, Miller, Eric wrote:
> Can someone verify this for me?
> svn del <dir>
> svn ci -m '' <dir>
> svn cp . <tag url> <----- fails with 'missing <dir>' error.
IMHO, this is not a bug. The directory <dir> is *really* missing
in this revision. If you want to copy . at a revision where <dir>
has been removed, you need to update it with "svn up".
--
Vincent Lefèvre <vi...@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org