~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transform.py

  • Committer: Patch Queue Manager
  • Date: 2012-03-12 13:38:09 UTC
  • mfrom: (6478.2.1 path2id-list)
  • Revision ID: pqm@pqm.ubuntu.com-20120312133809-q6xr6ujz40gpucun
(jelmer) Reintroduce support for passing lists to Tree.path2id(). (Jelmer
 Vernooij)

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):