[MERGE] Use last-revision in BzrBranch6.revno() to avoid loading the whole history
Lukáš Lalinský
lalinsky at gmail.com
Sun Dec 2 19:28:49 GMT 2007
BzrBranch6 branches have the last revision number stored in
".bzr/branch/last-revision", there is no need to load the whole history.
$ time bzr revno >/dev/null
real 0m3.996s
user 0m3.784s
sys 0m0.124s
$ time bzr revno >/dev/null
real 0m0.323s
user 0m0.264s
sys 0m0.040s
Lukas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzr-mail-Nyzd4S.patch
Type: text/x-patch
Size: 2336 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20071202/be5602eb/attachment.bin
More information about the bazaar
mailing list