Deleting a tag from a bound branch

Max Bowsher _ at maxb.eu
Sun Nov 13 10:50:28 UTC 2011


On 12/11/11 12:34, Eli Zaretskii wrote:
> In a bound branch, I typed the following command:
> 
>   bzr tag --delete EMACS_PRETEST_23_0_96
> 
> which connected to the upstream repo and then said
> 
>   Deleted tag EMACS_PRETEST_23_0_96
> 
> So far so good, but after a "bzr update" on a different machine,
> "bzr tags" still shows the same tag.  What is wrong?
> 
> I deleted that tag because its related revision does not exist in the
> repository ("bzr tags" shows "?" in place of the revision).
> 
> In case it matters, the version of Bazaar used to delete the tag is
> 2.4.2, the version on the other machine is 2.1.4.

Bazaar's tags are not stored in a way that history is tracked - the data
structure is effectively just a single dictionary/map persisted on disk.
As a result, the process of merging/updating tags from one branch to
another is simply "add all present in source not present in destination;
warn user if source and destination define the same tag differently".

This basically means that tag additions can propagate via update etc.,
tag deletions do not propagate (and get undone when seen as an addition
if bzr push etc. is invoked), and tag changes cause "Conflicting tags"
warnings, which have to be manually resolved at every step of propagation.

Sometimes I think bzr should have supported history-tracked tags, e.g.
like Mercurial - but then, there are things I don't like about the
.hgtags solution too.

Max.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/bazaar/attachments/20111113/76aea674/attachment.pgp>


More information about the bazaar mailing list