[PLUGIN] tags
Michael Ellerman
michael at ellerman.id.au
Tue Jun 28 15:05:25 BST 2005
On Tue, 28 Jun 2005 22:20, Johan Rydberg wrote:
> This plugin implements mutable unversioned tags. It is all quite
> simple; just keep a "x-tags" file in .bzr/ that assigns a symbolic
> name to a revision.
Nice one!
I've hacked on it a bit, my version is attached.
Changes were:
* added a Tags class that does the loading/saving in one place
* Changed the format of the tags file to be "revno<space>tag\n"
This allows us to have spaces in the tag but ..
* Disallowed explicitly leading/trailing spaces or '\n' in tags
* Fixed the call to b.revno() which should be branch.revno()
* Added a bit of error checking when reading the tags
Plugins rock.
cheers
--
Michael Ellerman
IBM OzLabs
email: michael:ellerman.id.au
inmsg: mpe:jabber.org
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: __init__.py
Type: application/x-python
Size: 5457 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050629/5c2c5a51/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050629/5c2c5a51/attachment.pgp
More information about the bazaar
mailing list