Merge lp:~jelmer/bzr/path2id-list into lp:bzr
Proposed by
Jelmer Vernooij
Status: | Merged |
---|---|
Approved by: | Martin Packman |
Approved revision: | no longer in the source branch. |
Merged at revision: | 6495 |
Proposed branch: | lp:~jelmer/bzr/path2id-list |
Merge into: | lp:bzr |
Diff against target: |
164 lines (+76/-6) 6 files modified
bzrlib/inventory.py (+7/-4) bzrlib/tests/per_tree/__init__.py (+1/-0) bzrlib/tests/per_tree/test_ids.py (+51/-0) bzrlib/transform.py (+4/-0) bzrlib/workingtree_4.py (+10/-1) doc/en/release-notes/bzr-2.6.txt (+3/-1) |
To merge this branch: | bzr merge lp:~jelmer/bzr/path2id-list |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Packman (community) | Approve | ||
Review via email: mp+95956@code.launchpad.net |
Commit message
Reintroduce support for passing lists to Tree.path2id().
Description of the change
Allow passing in a list of path elements to Tree.path2id.
This was supported in the past, because Inventory.path2id allowed it,
and is still quite useful.
Also, add some more tests for Tree.path2id and Tree.id2path. Previously
these weren't directly tested (though they usually just called out to
Inventory.
To post a comment you must log in.
There is some repetition here. Perhaps I should factor out:
12 + if relpath == []: pathjoin( *relpath)
13 + relpath = [""]
14 + relpath = osutils.
... into another helper method?