/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/git/tree.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-01-19 15:58:34 UTC
  • mfrom: (7450.1.2 id2path-recurse)
  • Revision ID: breezy.the.bot@gmail.com-20200119155834-fw67l9q382xh7i98
Support recurse argument to id2path.

Merged from https://code.launchpad.net/~jelmer/brz/id2path-recurse/+merge/377805

Show diffs side-by-side

added added

removed removed

Lines of Context:
342
342
            raise _mod_tree.FileTimestampUnavailable(path)
343
343
        return rev.timestamp
344
344
 
345
 
    def id2path(self, file_id):
 
345
    def id2path(self, file_id, recurse='down'):
346
346
        try:
347
347
            path = self.mapping.parse_file_id(file_id)
348
348
        except ValueError:
1072
1072
                    osutils.safe_unicode(path))
1073
1073
            return None
1074
1074
 
1075
 
    def id2path(self, file_id):
 
1075
    def id2path(self, file_id, recurse='down'):
1076
1076
        if file_id is None:
1077
1077
            return ''
1078
1078
        if type(file_id) is not bytes: