/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: Jelmer Vernooij
  • Date: 2019-09-27 01:38:48 UTC
  • mto: This revision was merged to the branch mainline in revision 7402.
  • Revision ID: jelmer@jelmer.uk-20190927013848-px4eoymu6bqjq8rj
Allow has_id to be unsupported.

Show diffs side-by-side

added added

removed removed

Lines of Context:
361
361
        return ret
362
362
 
363
363
    def has_id(self, file_id):
364
 
        try:
365
 
            path = self.id2path(file_id)
366
 
        except errors.NoSuchId:
367
 
            return False
368
 
        return self.has_filename(path)
 
364
        raise errors.UnsupportedOperation(self.has_id, self)
369
365
 
370
366
    def _lookup_path(self, path):
371
367
        if self.tree is None:
1025
1021
            return None
1026
1022
 
1027
1023
    def has_id(self, file_id):
1028
 
        try:
1029
 
            self.id2path(file_id)
1030
 
        except errors.NoSuchId:
1031
 
            return False
1032
 
        else:
1033
 
            return True
 
1024
        raise errors.UnsupportedOperation(self.has_id, self)
1034
1025
 
1035
1026
    def id2path(self, file_id):
1036
1027
        if file_id is None: