Merge lp:~spiv/bzr/faster-revert-593560 into lp:bzr
Proposed by
Andrew Bennetts
Status: | Merged |
---|---|
Approved by: | Andrew Bennetts |
Approved revision: | no longer in the source branch. |
Merged at revision: | 5401 |
Proposed branch: | lp:~spiv/bzr/faster-revert-593560 |
Merge into: | lp:bzr |
Diff against target: |
56 lines (+11/-3) 3 files modified
NEWS (+4/-0) bzrlib/tree.py (+1/-1) doc/en/whats-new/whats-new-in-2.3.txt (+6/-2) |
To merge this branch: | bzr merge lp:~spiv/bzr/faster-revert-593560 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
bzr-core | Pending | ||
Review via email: mp+34043@code.launchpad.net |
Commit message
Avoid repeatedly calling self.target.
Description of the change
This simple change improves bzr revert and bzr status on large trees (i.e. gcc-linaro) with many changes (i.e. reverting from lp:gcc-linaro/4.5 to tag:gcc_
Tests still pass, and avoiding unnecessary (and repeated) calls to all_file_ids seems like a clearly good idea.
To post a comment you must log in.
That's pretty nice.
Perhaps the news entry can say a bit more about what changed so we can
understand it later: "by not repeatedly building a list of file ids."
I'd like you to add this to the whatsnew-2.3 docs too, under a
performance heading.
In some ways this patch feels incomplete not to have a test or a
prevention of regressions. I guess it is reasonable to keep
all_file_ids for people who want it. But perhaps just measuring
performance is the best way to keep it up, so +1 with those doc
tweaks.
--
Martin