~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transform.py

  • Committer: Jelmer Vernooij
  • Date: 2012-03-05 17:29:08 UTC
  • mto: This revision was merged to the branch mainline in revision 6495.
  • Revision ID: jelmer@samba.org-20120305172908-diwejxq31xmy3sbl
Accept path element list as argument to Tree.path2id.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2117
2117
        return cur_parent
2118
2118
 
2119
2119
    def path2id(self, path):
 
2120
        if isinstance(path, list):
 
2121
            if path == []:
 
2122
                path = [""]
 
2123
            path = osutils.pathjoin(*path)
2120
2124
        return self._transform.final_file_id(self._path2trans_id(path))
2121
2125
 
2122
2126
    def id2path(self, file_id):