/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/push.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-11 04:08:32 UTC
  • mto: (7143.16.20 even-more-cleanups)
  • mto: This revision was merged to the branch mainline in revision 7175.
  • Revision ID: jelmer@jelmer.uk-20181111040832-nsljjynzzwmznf3h
Run autopep8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    GitSmartRemoteNotSupported,
26
26
    )
27
27
 
 
28
 
28
29
class GitPushResult(PushResult):
29
30
 
30
31
    def _lookup_revno(self, revid):
31
32
        from .branch import _quick_lookup_revno
32
33
        try:
33
34
            return _quick_lookup_revno(self.source_branch, self.target_branch,
34
 
                revid)
 
35
                                       revid)
35
36
        except GitSmartRemoteNotSupported:
36
37
            return None
37
38
 
85
86
            self._pending.append((obj, path))
86
87
        if commit is None:
87
88
            raise AssertionError("no commit object generated for revision %s" %
88
 
                revid)
 
89
                                 revid)
89
90
        return commit.id
90
91
 
91
92
    def __len__(self):