Bazaar and "Global Revision Numbers"

John Arbash Meinel john at arbash-meinel.com
Tue May 16 20:35:49 BST 2006


Sharmarke Aden wrote:
> In Subversion, repositories have global revision numbers and I was
> wondering if Bazaar also has a feature akin to global revision
> numbers.
> 

Yes, they are called 'revision-ids', and they are universally unique. As
in across projects, repositories, etc.

Subversion repositories each have a unique id for each repository, so
UUID + revno is unique. Bazaar just uses unique revision ids for every
revision.

If you use 'bzr revision-history' it will print out the unique
identifiers for this branch.

Or you can use "bzr revision-info" to get the revision id and revno for
a given revision

$ bzr revision-info -r 1
   1 mbp at sourcefrog.net-20050309040815-13242001617e4a06
$ bzr revision-info -r \
    revid:mbp at sourcefrog.net-20050309040815-13242001617e4a06
   1 mbp at sourcefrog.net-20050309040815-13242001617e4a06

And 'bzr cat-revision' to get more information

$ bzr cat-revision mbp at sourcefrog.net-20050309040815-13242001617e4a06
<revision committer="mbp at sourcefrog.net" format="5"
inventory_sha1="e89199a707b4b58b8d48b0681fc20462612738e3"
revision_id="mbp at sourcefrog.net-20050309040815-13242001617e4a06"
timestamp="1110341295.066698074">
<message>import from baz patch-364</message>
</revision>

John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060516/1a72676f/attachment.pgp 


More information about the bazaar mailing list