/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/plugins/git/repository.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-05-15 00:35:21 UTC
  • mfrom: (6965.1.3 horizon)
  • Revision ID: breezy.the.bot@gmail.com-20180515003521-u1v3c75m5jxi5ts9
Support running 'bzr log' in a shallow git branch.

Revision numbers are not displayed in this case, since they are not known.

Merged from https://code.launchpad.net/~jelmer/brz/horizon-log/+merge/345552

Show diffs side-by-side

added added

removed removed

Lines of Context:
390
390
            commit = self._git.object_store[hexsha]
391
391
        except KeyError:
392
392
            return None
393
 
        return [
394
 
            self.lookup_foreign_revision_id(p, mapping)
395
 
            for p in commit.parents]
 
393
        ret = []
 
394
        for p in commit.parents:
 
395
            try:
 
396
                ret.append(self.lookup_foreign_revision_id(p, mapping))
 
397
            except KeyError:
 
398
                ret.append(mapping.revision_id_foreign_to_bzr(p))
 
399
        return ret
396
400
 
397
401
    def _get_parent_map_no_fallbacks(self, revids):
398
402
        return self.get_parent_map(revids, no_alternates=True)