You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Michael P. Soulier" <ms...@digitaltorque.ca> on 2006/06/06 02:38:50 UTC

disappearing tags

Hello,

I have a project called "rem", with the standard structure.

rem/trunk
rem/tags/release-0.3
rem/tags/release-0.4
rem/tags/release-0.5

I just created the 0.5 tag. Now, the project has been renamed, so in addition
to renaming a lot of files, I also renamed the rem directory. Now it's...

MiProf/trunk
MiProf/tags/release-0.3
MiProf/tags/release-0.4

Umm, where did release-0.5 go??

Help appreciated. I tried an svn up, but it's up to date.

Mike

-- 
Michael P. Soulier <ms...@digitaltorque.ca>
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction." --Albert Einstein

Re: disappearing tags

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jun 6, 2006, at 04:38, Michael P. Soulier wrote:

> I have a project called "rem", with the standard structure.
>
> rem/trunk
> rem/tags/release-0.3
> rem/tags/release-0.4
> rem/tags/release-0.5
>
> I just created the 0.5 tag. Now, the project has been renamed, so  
> in addition
> to renaming a lot of files, I also renamed the rem directory. Now  
> it's...
>
> MiProf/trunk
> MiProf/tags/release-0.3
> MiProf/tags/release-0.4
>
> Umm, where did release-0.5 go??
>
> Help appreciated. I tried an svn up, but it's up to date.

Check the log. If your repository is $REPO, try:

svn log -v $REPO/MiProf --stop-on-copy

Maybe that'll show too much output, I'm not sure... but it should  
show you what was copied from where. Presumably you'll see that the  
0.5 release tag was not copied.

The reason for this could be that you had a working copy of maybe the  
whole repository checked out? And you did this move in that working  
copy? And you didn't run "svn up" on the root directory before doing  
so? Presumably that would mean that the revision of the rem directory  
when you did the move was before the revision in which the 0.5  
release tag existed, so it was not copied with the rest of it.

One solution now would be to copy the 0.5 release tag from the old  
URL to the new one with something like

svn cp \
$REPO/rem/tags/release-0.5@$FOO \
$REPO/MiProf/tags \
-m "Re-adding 0.5 release tag"

where $FOO is a revision in which the 0.5 release tag still existed.

I'm a little worried though that maybe some other changes weren't  
copied either. It could depend on how long ago you last ran "svn up"  
on that root directory. It might be better to just delete the entire  
MiProf directory and do the copy again, "properly." By "properly" I  
don't mean that there was anything wrong with the way you did it,  
it's just that you have to make sure the directories are up-to-date  
in the working copy before doing so, and as you see that's easy to  
forget. I'd try:

svn rm \
$REPO/MiProf \
-m "Deleting incorrectly-copied MiProf project"

svn cp \
$REPO/rem@$BAR \
$REPO/MiProf \
-m "Renaming rem to MiProf"

where $BAR is the last revision in which rem existed.

The recommended practice is not to check out the entire repository --  
this gets unwieldy as you start getting a lot of branches or tags.  
Usually you should just check out the part of the repository you need  
to use -- like the trunk. And if you need to work on a branch, then  
you can "svn switch" to it, do the work in the branch, and then  
switch back to the trunk.


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

Re: disappearing tags

Posted by "Michael P. Soulier" <ms...@digitaltorque.ca>.
On 06/06/06 Miha Vitorovic said:

> Hmmm, as far as I understand these things, r273 says that entire 
> "/mitel/rem" was deleted, including the "/mitel/rem/tags/release-0.5" and 
> all others I guess. Or something rather strange is going on indeed. I'm 
> not too familiar with CLI client, but 'R' flag seems to be WC only, so are 
> you sure you commited all the changes?

As I said, I renamed rem to MiProf. Hence, rem was deleted and MiProf was
added. Renaming a directory should of course leave the directory contents
unchanged. 

Mike
>    NIL Data Communications,  Tivolska cesta 48,  1000 Ljubljana,  Slovenia
>    Phone +386 1 4746 500      Fax +386 1 4746 501     http://www.NIL.si
-- 
Michael P. Soulier <ms...@digitaltorque.ca>
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction." --Albert Einstein

Re: disappearing tags

Posted by Miha Vitorovic <mv...@nil.si>.
"Michael P. Soulier" <ms...@digitaltorque.ca> wrote on 06.06.2006 
13:53:03:

> On 06/06/06 Miha Vitorovic said:
> 
> > Mike
> > 
> > And what exactly does
> > 
> >  svn log -v http://www.example.com/repo/
> > 
> > say about rem/tags/release-0.5 or MiProf/tags/release-0.5 ?
> 
> [msoulier@tigger MiProf]$ svn log -v tags
> ------------------------------------------------------------------------
> r273 | msoulier | 2006-06-05 22:29:54 -0400 (Mon, 05 Jun 2006) | 1 line
> Changed paths:
>    A /mitel/MiProf (from /mitel/rem:264)
>    R /mitel/MiProf/tags (from /mitel/rem/tags:272)
>    R /mitel/MiProf/trunk (from /mitel/rem/trunk:272)
>    D /mitel/rem
> 
> still renaming
> ------------------------------------------------------------------------
> r265 | msoulier | 2006-06-05 21:16:08 -0400 (Mon, 05 Jun 2006) | 2 lines
> Changed paths:
>    A /mitel/rem/tags/release-0.5 (from /mitel/rem/trunk:264)
> 
> Tagging release 0.5.
> 

Hmmm, as far as I understand these things, r273 says that entire 
"/mitel/rem" was deleted, including the "/mitel/rem/tags/release-0.5" and 
all others I guess. Or something rather strange is going on indeed. I'm 
not too familiar with CLI client, but 'R' flag seems to be WC only, so are 
you sure you commited all the changes?

Regards,
---
  Miha Vitorovic
  Inženir v tehničnem področju
  Customer Support Engineer

   NIL Data Communications,  Tivolska cesta 48,  1000 Ljubljana,  Slovenia
   Phone +386 1 4746 500      Fax +386 1 4746 501     http://www.NIL.si

Re: disappearing tags

Posted by "Michael P. Soulier" <ms...@digitaltorque.ca>.
On 06/06/06 Miha Vitorovic said:

> Mike
> 
> And what exactly does
> 
>  svn log -v http://www.example.com/repo/
> 
> say about rem/tags/release-0.5 or MiProf/tags/release-0.5 ?

[msoulier@tigger MiProf]$ svn log -v tags
------------------------------------------------------------------------
r273 | msoulier | 2006-06-05 22:29:54 -0400 (Mon, 05 Jun 2006) | 1 line
Changed paths:
   A /mitel/MiProf (from /mitel/rem:264)
   R /mitel/MiProf/tags (from /mitel/rem/tags:272)
   R /mitel/MiProf/trunk (from /mitel/rem/trunk:272)
   D /mitel/rem

still renaming
------------------------------------------------------------------------
r265 | msoulier | 2006-06-05 21:16:08 -0400 (Mon, 05 Jun 2006) | 2 lines
Changed paths:
   A /mitel/rem/tags/release-0.5 (from /mitel/rem/trunk:264)

Tagging release 0.5.

------------------------------------------------------------------------
r203 | msoulier | 2006-03-06 20:54:04 -0500 (Mon, 06 Mar 2006) | 1 line
Changed paths:
   A /mitel/rem/tags/release-0.4 (from /mitel/rem/trunk:202)

Tagging release 0.4
------------------------------------------------------------------------
r198 | msoulier | 2006-03-06 10:44:50 -0500 (Mon, 06 Mar 2006) | 1 line
Changed paths:
   A /mitel/rem/tags/release-0.3 (from /mitel/rem/trunk:197)

Tagging release 0.3
------------------------------------------------------------------------
r196 | msoulier | 2006-03-06 10:43:17 -0500 (Mon, 06 Mar 2006) | 1 line
Changed paths:
   A /mitel/rem/tags

adding tags directory
------------------------------------------------------------------------

Odd thing is, my checked-out sandbox at work shows the release-0.5 directory,
but my sandbox at home does not. 

Mike

-- 
Michael P. Soulier <ms...@digitaltorque.ca>
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction." --Albert Einstein

Re: disappearing tags

Posted by Miha Vitorovic <mv...@nil.si>.
"Michael P. Soulier" <ms...@digitaltorque.ca> wrote on 06.06.2006 
04:38:50:

> 
> MiProf/trunk
> MiProf/tags/release-0.3
> MiProf/tags/release-0.4
> 
> Umm, where did release-0.5 go??
> 
> Help appreciated. I tried an svn up, but it's up to date.
> 
> Mike

Mike

And what exactly does

 svn log -v http://www.example.com/repo/

say about rem/tags/release-0.5 or MiProf/tags/release-0.5 ?

Regards,
---
  Miha Vitorovic
  Inženir v tehničnem področju
  Customer Support Engineer

   NIL Data Communications,  Tivolska cesta 48,  1000 Ljubljana,  Slovenia
   Phone +386 1 4746 500      Fax +386 1 4746 501     http://www.NIL.si

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