You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Dylan Cuthbert <dy...@q-games.com> on 2002/09/05 08:22:06 UTC
problems copying and removing a directory
I have a tree repo/john/blob checked out and I also have a tree of just john
checked out somewhere else.
I then try to update or commit from my "other" checked out john, I now get
the error
svn: Error string not specified yet
svn: Commit failed (details follow):
svn: OPTIONS request failed on /repo/john/blob
svn:
file not found: revision `1377', path `/john'
I can't commit/update or do anything with this other directory now, it has
been orphaned somehow. However, svn info displays that it is revision
"1376" so it still knows that much.
So what if I had important changes in this directory that I want to commit
*somewhere*, what do I do?
So... what's the correct course of action?
Regards
--
---------------------------------
Q-Games, Dylan Cuthbert.
http://www.q-games.com
P2P internet radio - http://www.peercast.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: problems copying and removing a directory
Posted by Ben Collins-Sussman <su...@collab.net>.
Ben Collins-Sussman <su...@collab.net> writes:
> [standard greek tree in wc]
> $ cp -R A/D ..
> $ svn mv A/D A/BOO
> $ svn ci
> $ cd ../D
> $ svn up
> svn: Filesystem has no item
> svn: file not found: revision `2', path `/A/D'
>
> $ svn switch file://home/sussman/projects/test/repo/A/BOO .
Copy and pasto: I *did* use three /// above, and got the strange
error below.
> svn: Bad URL passed to RA layer
> svn: '/home/sussman/projects/test/repo'
> is not the same repository as
> '//home/sussman/projects/test/repo'
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: problems copying and removing a directory
Posted by Ben Collins-Sussman <su...@collab.net>.
Philip Martin <ph...@codematters.co.uk> writes:
> Ben Collins-Sussman <su...@collab.net> writes:
>
> > or do an 'svn switch' of the working copy to the new location.
>
> That doesn't work
>
> $ svnadmin create /tmp/repo
> $ svn mkdir http://localhost/tmp/repo/foo
> $ svn co http://localhost/tmp/repo/foo wc2
> $ svn mv http://localhost/tmp/repo/foo http://localhost/tmp/repo/bar
> $ svn sw http://localhost/tmp/repo/bar wc2
> ../svn/subversion/libsvn_ra_dav/util.c:332: (apr_err=160013, src_err=0)
> svn: Filesystem has no item
> svn: REPORT request failed on /tmp/repo/foo
> ../svn/subversion/libsvn_ra_dav/util.c:163: (apr_err=160013, src_err=0)
> svn:
> file not found: revision `2', path `/foo'
>
> Is there any reason why we can't make this work?
No, it should work AFAIK. Can you file this as an ra_dav bug, because
I just tried the same scenario with ra_local, and it works fine.
Hmmm, actually, scratch that. I've got a totally different error now:
[standard greek tree in wc]
$ cp -R A/D ..
$ svn mv A/D A/BOO
$ svn ci
$ cd ../D
$ svn up
svn: Filesystem has no item
svn: file not found: revision `2', path `/A/D'
$ svn switch file://home/sussman/projects/test/repo/A/BOO .
svn: Bad URL passed to RA layer
svn: '/home/sussman/projects/test/repo'
is not the same repository as
'//home/sussman/projects/test/repo'
That's bizarre... some new path bug? I'm using r3137.
This didn't happen to you, Philip?
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: problems copying and removing a directory
Posted by Philip Martin <ph...@codematters.co.uk>.
Philip Martin <ph...@codematters.co.uk> writes:
> > or do an 'svn switch' of the working copy to the new location.
>
> That doesn't work
>
> $ svnadmin create /tmp/repo
> $ svn mkdir http://localhost/tmp/repo/foo
> $ svn co http://localhost/tmp/repo/foo wc2
> $ svn mv http://localhost/tmp/repo/foo http://localhost/tmp/repo/bar
> $ svn sw http://localhost/tmp/repo/bar wc2
> ../svn/subversion/libsvn_ra_dav/util.c:332: (apr_err=160013, src_err=0)
> svn: Filesystem has no item
> svn: REPORT request failed on /tmp/repo/foo
> ../svn/subversion/libsvn_ra_dav/util.c:163: (apr_err=160013, src_err=0)
> svn:
> file not found: revision `2', path `/foo'
>
> Is there any reason why we can't make this work?
It works over ra_local, so I imagine it should work over ra_dav as
well. I've raised issue 891 for this.
--
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: problems copying and removing a directory
Posted by Philip Martin <ph...@codematters.co.uk>.
Ben Collins-Sussman <su...@collab.net> writes:
> or do an 'svn switch' of the working copy to the new location.
That doesn't work
$ svnadmin create /tmp/repo
$ svn mkdir http://localhost/tmp/repo/foo
$ svn co http://localhost/tmp/repo/foo wc2
$ svn mv http://localhost/tmp/repo/foo http://localhost/tmp/repo/bar
$ svn sw http://localhost/tmp/repo/bar wc2
../svn/subversion/libsvn_ra_dav/util.c:332: (apr_err=160013, src_err=0)
svn: Filesystem has no item
svn: REPORT request failed on /tmp/repo/foo
../svn/subversion/libsvn_ra_dav/util.c:163: (apr_err=160013, src_err=0)
svn:
file not found: revision `2', path `/foo'
Is there any reason why we can't make this work?
--
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: problems copying and removing a directory
Posted by Ben Collins-Sussman <su...@collab.net>.
"Dylan Cuthbert" <dy...@q-games.com> writes:
> Maybe I'm simply having trouble grasping the concepts involved. (coming from
> cvs and not used to this ability to copy directories around)
>
> Surely, the svn client should recognise that the directory has been deleted
> and simply tell me that?
Well, in Philip's example below, it *is* telling you that. The error says
that the directory represented by the working copy no longer exists.
> If the directory has been mv'd then it'd be nice if it told me where
> it was last moved. As it stands, a remote user wouldn't know where
> to begin to fix the error. What is the correct "official" course of
> action in such a case?
The user would say, "what the heck? this directory is deleted?". The
user would then read the logs ("svn log"), discover who moved the
directory and why. Then the user would either destroy the working
copy, or do an 'svn switch' of the working copy to the new location.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: problems copying and removing a directory
Posted by Dylan Cuthbert <dy...@q-games.com>.
Maybe I'm simply having trouble grasping the concepts involved. (coming from
cvs and not used to this ability to copy directories around)
Surely, the svn client should recognise that the directory has been deleted
and simply tell me that? If the directory has been mv'd then it'd be nice
if it told me where it was last moved. As it stands, a remote user wouldn't
know where to begin to fix the error. What is the correct "official" course
of action in such a case?
Regards
---------------------------------
Q-Games, Dylan Cuthbert.
http://www.q-games.com
P2P internet radio - http://www.peercast.org
"Philip Martin" <ph...@codematters.co.uk> wrote in message
news:878z2f7uuh.fsf@codematters.co.uk...
> "Dylan Cuthbert" <dy...@q-games.com> writes:
>
> > Sorry anyway, after checking out both trees I svn cp'd blob from
> > repo/john/blob to repo/john/blob2 and then svn rm --force'd
repo/john/blob -
> > the reason I used force is because I had non-repository files in there
left
> > over from a compile. Does the force has adverse side-effects?
> >
> > After doing this when I try to commit or update the "other" blob
directory
> > (1376) I get the error below.
>
> Are you deleting the root of one working copy?
>
> $ svnadmin create /tmp/repo
> $ svn mkdir http://localhost/tmp/repo/foo
> $ svn co http://localhost/tmp/repo wc1
> $ svn co http://localhost/tmp/repo/foo wc2
> $ svn mv wc1/foo wc1/bar
> $ svn ci wc1
> $ svn up wc2
> ../svn/subversion/libsvn_ra_dav/util.c:332: (apr_err=160013, src_err=0)
> svn: Filesystem has no item
> svn: REPORT request failed on /tmp/repo/foo
> ../svn/subversion/libsvn_ra_dav/util.c:163: (apr_err=160013, src_err=0)
> svn:
> file not found: revision `2', path `/foo'
>
> A working copy cannot be updated to a revision that deletes it's root.
> What would you expect the updated working copy to look like? You
> cannot commit from such a working copy either.
>
> $ svn mkdir wc2/zig
> $ svn ci wc2
> ../svn/subversion/libsvn_client/commit.c:660: (apr_err=160013, src_err=0)
> svn: Filesystem has no item
> svn: Commit failed (details follow):
> ../svn/subversion/libsvn_ra_dav/util.c:332: (apr_err=160013, src_err=0)
> svn: OPTIONS request failed on /tmp/repo/foo
> ../svn/subversion/libsvn_ra_dav/util.c:163: (apr_err=160013, src_err=0)
> svn:
> file not found: revision `2', path `/foo'
>
> --
> Philip Martin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: problems copying and removing a directory
Posted by Philip Martin <ph...@codematters.co.uk>.
"Dylan Cuthbert" <dy...@q-games.com> writes:
> Sorry anyway, after checking out both trees I svn cp'd blob from
> repo/john/blob to repo/john/blob2 and then svn rm --force'd repo/john/blob -
> the reason I used force is because I had non-repository files in there left
> over from a compile. Does the force has adverse side-effects?
>
> After doing this when I try to commit or update the "other" blob directory
> (1376) I get the error below.
Are you deleting the root of one working copy?
$ svnadmin create /tmp/repo
$ svn mkdir http://localhost/tmp/repo/foo
$ svn co http://localhost/tmp/repo wc1
$ svn co http://localhost/tmp/repo/foo wc2
$ svn mv wc1/foo wc1/bar
$ svn ci wc1
$ svn up wc2
../svn/subversion/libsvn_ra_dav/util.c:332: (apr_err=160013, src_err=0)
svn: Filesystem has no item
svn: REPORT request failed on /tmp/repo/foo
../svn/subversion/libsvn_ra_dav/util.c:163: (apr_err=160013, src_err=0)
svn:
file not found: revision `2', path `/foo'
A working copy cannot be updated to a revision that deletes it's root.
What would you expect the updated working copy to look like? You
cannot commit from such a working copy either.
$ svn mkdir wc2/zig
$ svn ci wc2
../svn/subversion/libsvn_client/commit.c:660: (apr_err=160013, src_err=0)
svn: Filesystem has no item
svn: Commit failed (details follow):
../svn/subversion/libsvn_ra_dav/util.c:332: (apr_err=160013, src_err=0)
svn: OPTIONS request failed on /tmp/repo/foo
../svn/subversion/libsvn_ra_dav/util.c:163: (apr_err=160013, src_err=0)
svn:
file not found: revision `2', path `/foo'
--
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: problems copying and removing a directory
Posted by Dylan Cuthbert <dy...@q-games.com>.
Hi there,
Must've pushed the wrong key and deleted it because I wrote an additional
sentence with the back-story.. strange.
Sorry anyway, after checking out both trees I svn cp'd blob from
repo/john/blob to repo/john/blob2 and then svn rm --force'd repo/john/blob -
the reason I used force is because I had non-repository files in there left
over from a compile. Does the force has adverse side-effects?
After doing this when I try to commit or update the "other" blob directory
(1376) I get the error below.
Regards
---------------------------------
Q-Games, Dylan Cuthbert.
http://www.q-games.com
P2P internet radio - http://www.peercast.org
"Ben Collins-Sussman" <su...@collab.net> wrote in message
news:864rd4zljw.fsf@kepler.ch.collab.net...
> "Dylan Cuthbert" <dy...@q-games.com> writes:
>
> > I have a tree repo/john/blob checked out and I also have a tree of just
john
> > checked out somewhere else.
> >
> >
> > I then try to update or commit from my "other" checked out john, I now
get
> > the error
> >
> > svn: Error string not specified yet
> > svn: Commit failed (details follow):
> > svn: OPTIONS request failed on /repo/john/blob
> > svn:
> > file not found: revision `1377', path `/john'
>
>
> You never explained how this happened, or what you did in either of
> your working copies. Is it true? Does the path /john no longer exist
> in r1377? Did you delete or rename this path? What's the backstory here?
>
>
> > So what if I had important changes in this directory that I want to
commit
> > *somewhere*, what do I do?
>
> You can save your local mods by simply running 'svn diff > patchfile'.
> This doesn't require any network access at all.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: problems copying and removing a directory
Posted by Ben Collins-Sussman <su...@collab.net>.
"Dylan Cuthbert" <dy...@q-games.com> writes:
> I have a tree repo/john/blob checked out and I also have a tree of just john
> checked out somewhere else.
>
>
> I then try to update or commit from my "other" checked out john, I now get
> the error
>
> svn: Error string not specified yet
> svn: Commit failed (details follow):
> svn: OPTIONS request failed on /repo/john/blob
> svn:
> file not found: revision `1377', path `/john'
You never explained how this happened, or what you did in either of
your working copies. Is it true? Does the path /john no longer exist
in r1377? Did you delete or rename this path? What's the backstory here?
> So what if I had important changes in this directory that I want to commit
> *somewhere*, what do I do?
You can save your local mods by simply running 'svn diff > patchfile'.
This doesn't require any network access at all.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: problems copying and removing a directory (cygwin: plus duplicated inode problem)
Posted by Dylan Cuthbert <dy...@q-games.com>.
"Ben Collins-Sussman" <su...@collab.net> wrote in message
news:86znuwy6vz.fsf@kepler.ch.collab.net...
> "Dylan Cuthbert" <dy...@q-games.com> writes:
>
> > On top of this, I tried to delete the entire tree structure and rm
complains
> > to me that two of the files in there have the same inode. One of them
is
> > the top-most dir "repo" and the other is a ".cvs" directory further in.
>
> You mean, ".svn" directory?
yes sorry about that... old habits die hard... is it just me or is "svn"
harder to type than cvs? :-)
>
> I have no idea what the double-inode problem is. That sounds like a
> cygwin bug, or some odd bug between APR and cygwin.
I've never seen it before either and I use cygwin extensively with all the
latest experimental packages. I'm going to play around with it again today,
doing the same kind of thing and see if it re-occurs.
--
---------------------------------
Q-Games, Dylan Cuthbert.
http://www.q-games.com
P2P internet radio - http://www.peercast.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: problems copying and removing a directory (cygwin: plus duplicated inode problem)
Posted by Ben Collins-Sussman <su...@collab.net>.
"Dylan Cuthbert" <dy...@q-games.com> writes:
> On top of this, I tried to delete the entire tree structure and rm complains
> to me that two of the files in there have the same inode. One of them is
> the top-most dir "repo" and the other is a ".cvs" directory further in.
You mean, ".svn" directory?
I have no idea what the double-inode problem is. That sounds like a
cygwin bug, or some odd bug between APR and cygwin.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: problems copying and removing a directory (cygwin: plus duplicated inode problem)
Posted by Dylan Cuthbert <dy...@q-games.com>.
On top of this, I tried to delete the entire tree structure and rm complains
to me that two of the files in there have the same inode. One of them is
the top-most dir "repo" and the other is a ".cvs" directory further in.
This is using svn with cygwin, using the most recently released tarballs.
--
---------------------------------
Q-Games, Dylan Cuthbert.
http://www.q-games.com
P2P internet radio - http://www.peercast.org
"Dylan Cuthbert" <dy...@q-games.com> wrote in message
news:al7481$qql$1@main.gmane.org...
> I have a tree repo/john/blob checked out and I also have a tree of just
john
> checked out somewhere else.
>
>
> I then try to update or commit from my "other" checked out john, I now get
> the error
>
> svn: Error string not specified yet
> svn: Commit failed (details follow):
> svn: OPTIONS request failed on /repo/john/blob
> svn:
> file not found: revision `1377', path `/john'
>
>
>
> I can't commit/update or do anything with this other directory now, it has
> been orphaned somehow. However, svn info displays that it is revision
> "1376" so it still knows that much.
>
> So what if I had important changes in this directory that I want to commit
> *somewhere*, what do I do?
>
> So... what's the correct course of action?
>
> Regards
>
> --
> ---------------------------------
> Q-Games, Dylan Cuthbert.
> http://www.q-games.com
> P2P internet radio - http://www.peercast.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org