reassigning a tag

Alexander Belchenko bialix at ukr.net
Mon Jun 22 16:09:18 BST 2009


Darren Dale пишет:
> Hello,
> 
> I have a question about reassigning tags. This morning I tagged by 
> project 0.5b4 and pushed to launchpad, and then I noticed that 
> __version__ in __init__.py was still set to 0.5b3. So I make the 
> correction, run "bzr tag --delete 0.5b4 && bzr tag 0.5b4". Now when I 
> push and pull, I get a conflicting tags report for 0.5b4. Could anyone 
> explain why, and what the proper procedure would have been? I ended up 
> having to delete my 0.5b4 tag entirely and bump my revision to 0.5b5 and 
> tag that in order to silence the conflict report.

Something like that:

1) bzr tag 0.5b4
2) bzr push lp:foo
3) Oops! Need to update the branch and re-tag
4) bzr ci -m ...
5) bzr tag 0.5b4 --force (you can use --force instead of --delete + 
creating new tag).
6) bzr push lp:foo
At this point you'll get message about conflicting tags. So you have to 
overwrite old tags in the branch at LP:

bzr push lp:foo --overwrite

7) Your branches both have identical set of tags.
To check this use:

bzr tags
bzr tags -d lp:foo

First command will print you local tags, second command will print you 
remote tags.

HTH




More information about the bazaar mailing list