/breezy-hg/trunk

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy-hg/trunk

« back to all changes in this revision

Viewing changes to mapping.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-19 21:33:07 UTC
  • Revision ID: jelmer@jelmer.uk-20181119213307-k5uhm4776q3mwr52
Fix some more tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
318
318
    def parse_file_id(self, fileid):
319
319
        """Parse a file id."""
320
320
        assert isinstance(fileid, str)
 
321
        if fileid == b'TREE_ROOT':
 
322
            return ""
321
323
        if not fileid.startswith(b"hg:"):
322
324
            raise ValueError('invalid file id %r' % fileid)
323
325
        return unescape_path(fileid[len("hg:"):])