'bzr revert' shouldn't be much slower than 'bzr status'
Bug #759096 reported by
John A Meinel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
John A Meinel |
Bug Description
Thinking about 'bzr revert' it really just walks the tree finding what has been changed, and then replaces it with different content.
However, in the gcc-linaro tree with a reasonable sized merge, it takes 'bzr st' only 2s, but 'bzr revert' takes 16s.
I'm guessing the issue is that 'bzr revert' is doing something like building up a map of all entries in the tree, rather than starting with just the changed files, and then going from there.
We've spent a lot of time making 'iter_changes' fast, we should see if we can build revert on top of it.
Related branches
lp:~jameinel/bzr/2.4-revert-faster-759096
- Martin Pool: Needs Fixing
-
Diff: 186 lines (+69/-32)3 files modifiedbzrlib/transform.py (+40/-30)
doc/en/release-notes/bzr-2.4.txt (+13/-2)
doc/en/whats-new/whats-new-in-2.4.txt (+16/-0)
Changed in bzr: | |
status: | Confirmed → In Progress |
assignee: | nobody → John A Meinel (jameinel) |
Changed in bzr: | |
status: | In Progress → Fix Released |
Changed in bzr: | |
milestone: | none → 2.4b3 |
To post a comment you must log in.