[MERGE] Add a global branch write lock to cmd_uncommit and avoid unnecessary Branch.revno calls
Lukáš Lalinský
lalinsky at gmail.com
Sun Dec 2 19:16:37 GMT 2007
This patch makes the initial phase of 'bzr uncommit' on packs about 2x
faster:
$ time echo 'n' | bzr uncommit >/dev/null
real 0m7.579s
user 0m7.308s
sys 0m0.200s
$ time echo 'n' | bzr uncommit >/dev/null
real 0m3.927s
user 0m3.764s
sys 0m0.128s
It could use some work to load only partial history when checking
revision numbers on Branch6 branches, but that code is probably too deep
in bzrlib for me.
Lukas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzr-mail-ieYFa_.patch
Type: text/x-patch
Size: 4350 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20071202/de2c636f/attachment.bin
More information about the bazaar
mailing list