You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Eric Fesler <er...@audaxis.com> on 2005/07/20 16:48:10 UTC

Directory delete issue

Hi,

I'm having some trouble with the delete of a directory.

I had in my project a directory named "test".
It has been committed to the repository and after a while deleted from
the working copy. The deletion has been committed and the directory does
not appear anymore in the HEAD and svn status says that everything is in
line with the repository.

Up to now, everything seems normal !

The issue raises when I'm trying to generate a new tag.

I'm using:
svn copy . [repository path]/tags/release-X.X

Then, I make a checkout of release-X-X
using: svn checkout [repository path]/tags/release-X.X [targetDir]

and in the [targetDir], I "test" directory has been recreated with its
old content!!

What am i doing wrong?

Thanks for the help,

--ERic


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Directory delete issue

Posted by David Weintraub <qa...@gmail.com>.
Yes, that helped -- especially after I tried out the "svn status
--verbose" command.

However, you might also want to put in a warning in Chapter 3, The
Basic Work Cycle where you mention the "svn commit" command
<http://svnbook.red-bean.com/nightly/en/svn.tour.cycle.html#svn.tour.cycle.commit>
with a reference back to the end of chapter 2.

I can imagine someone reading Chapter 2, but this particular piece of
information not sinking in because they haven't used Subversion yet.
That will come later as they read about the various commands in
Chapter 3 and try a few examples.

On 7/20/05, Ben Collins-Sussman <su...@collab.net> wrote:
> 
> On Jul 20, 2005, at 4:20 PM, David Weintraub wrote:
> >
> > But, when I do a commit and make revision 2 of the archive. Isn't my
> > working copy now at revision 2, not revision 1?
> 
> Not at all.  Only *part* of your working copy is at revision 2 --
> namely, the items you just committed.
> 
> I've become so tired of re-explainin this FAQ in email and IRC, I
> finally added this new section to the end of Chapter 2 in the 1.2 book:
> 
>     http://svnbook.red-bean.com/nightly/en/svn.basic.in-
> action.html#svn.basic.in-action.mixedrevs
> 
> Read it, see if it helps clarify!
> 
> 
> 


-- 
--
David Weintraub
qazwart@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Directory delete issue

Posted by Ben Collins-Sussman <su...@collab.net>.
On Jul 20, 2005, at 4:20 PM, David Weintraub wrote:
>
> But, when I do a commit and make revision 2 of the archive. Isn't my
> working copy now at revision 2, not revision 1?

Not at all.  Only *part* of your working copy is at revision 2 --  
namely, the items you just committed.

I've become so tired of re-explainin this FAQ in email and IRC, I  
finally added this new section to the end of Chapter 2 in the 1.2 book:

    http://svnbook.red-bean.com/nightly/en/svn.basic.in- 
action.html#svn.basic.in-action.mixedrevs

Read it, see if it helps clarify!



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Directory delete issue

Posted by David Weintraub <qa...@gmail.com>.
On 7/20/05, Ben Collins-Sussman <su...@collab.net> wrote:
> It's not a bug.  'svn copy working-copy URL' uploads your working
> copy to the server, but it *notices* the mixed revisions in your
> working copy.  So the definiton of "revision 1" of your parent
> directory is, "has the child".  The defniiton of "revision 2" of the
> parent directory is "doesn't have the child."

But, when I do a commit and make revision 2 of the archive. Isn't my
working copy now at revision 2, not revision 1? Is there a situation
where this wouldn't be true? What if I make another change and create
a revision 3? Is my working directory still at revision 1?

> The bug I was referring to earlier is that this command should being
> saying to the server:  "I have revision 1 of the parent dir, but this
> user has also locally deleted the child, so get rid of it on the
> server too."   I think that was fixed in svn 1.2.

So, the working directory is still behind, but Subversion acts as expected.

--
David Weintraub
qazwart@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Directory delete issue

Posted by Ben Collins-Sussman <su...@collab.net>.
On Jul 20, 2005, at 3:35 PM, David Weintraub wrote:

>
> This looks like a bug to me and is easily reproducible.
>

It's not a bug.  'svn copy working-copy URL' uploads your working  
copy to the server, but it *notices* the mixed revisions in your  
working copy.  So the definiton of "revision 1" of your parent  
directory is, "has the child".  The defniiton of "revision 2" of the  
parent directory is "doesn't have the child."

The bug I was referring to earlier is that this command should being  
saying to the server:  "I have revision 1 of the parent dir, but this  
user has also locally deleted the child, so get rid of it on the  
server too."   I think that was fixed in svn 1.2.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Directory delete issue

Posted by David Weintraub <qa...@gmail.com>.
I think you've discovered a little itty bitty bug...

* I created a test archive, created two directories in that archive,
then did a commit.
* I deleted the archive, and did a brand new checkout.
* Now, I was at revision 1 of the archive which I verified via the
"svn info" command.
* I then deleted one of the directories, and did a commit which
created a revision 2.
* I did another SVN info command, and Subversion showed that my
working directory was still at revision 1!

If I did "svn copy . file://$REPOS/tags/TEST1.0", I would see the
deleted directory under the TEST1.0 tag. Looking at the "svn log -v"
command, I could see it copied Revision 1 of my directory and not the
latest revision.

HOWEVER, if I did an "svn update" before I did the copy, Subversion
would report that I am at revision 2. Then, if I do an "svn info", I
see that my working directory is revision 2 and not revision 1. And,
if I did the same copy command at that point, it doesn't include the
deleted directory!

So, if you did an "svn update" before you do your copy, you would have
seen the correct results. Also, if you used the URL for the current
directory instead of the ".", you would have seen the correct results.

This looks like a bug to me and is easily reproducible.


On 7/20/05, Eric Fesler <er...@audaxis.com> wrote:
> Hi,
> 
> I'm having some trouble with the delete of a directory.
> 
> I had in my project a directory named "test".
> It has been committed to the repository and after a while deleted from
> the working copy. The deletion has been committed and the directory does
> not appear anymore in the HEAD and svn status says that everything is in
> line with the repository.
> 
> Up to now, everything seems normal !
> 
> The issue raises when I'm trying to generate a new tag.
> 
> I'm using:
> svn copy . [repository path]/tags/release-X.X
> 
> Then, I make a checkout of release-X-X
> using: svn checkout [repository path]/tags/release-X.X [targetDir]
> 
> and in the [targetDir], I "test" directory has been recreated with its
> old content!!
> 
> What am i doing wrong?
> 
> Thanks for the help,
> 
> --ERic
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 
> 


-- 
--
David Weintraub
qazwart@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Directory delete issue

Posted by Saulius Grazulis <gr...@akl.lt>.
On Wednesday 20 July 2005 19:48, Eric Fesler wrote:

> I'm using:
> svn copy . [repository path]/tags/release-X.X

Did you do 'svn update' *after* deleting test/ directory and *before* copying 
to tags/ ? Maybe this is a problem?

> Then, I make a checkout of release-X-X
> using: svn checkout [repository path]/tags/release-X.X [targetDir]
>
> and in the [targetDir], I "test" directory has been recreated with its
> old content!!

-- 
Saulius Gražulis

Visuomeninė organizacija "Atviras Kodas Lietuvai"
P.Vileišio g. 18
LT-10306 Vilnius
Lietuva (Lithuania)

tel/fax:      (+370-5)-210 40 05
mobilus:      (+370-684)-49802, (+370-614)-36366