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

Use dulwich standard functionality for finding missing revisions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
292
292
 
293
293
    @property
294
294
    def head(self):
295
 
        if self._ref is None:
 
295
        if self._ref is not None:
296
296
            return self._ref
297
 
        heads = repository.get_refs()
298
 
        if not name in heads:
 
297
        heads = self.repository.get_refs()
 
298
        if not self.name in heads:
299
299
            raise NoSuchRef(name)
300
 
        self._ref = heads[name]
 
300
        self._ref = heads[self.name]
301
301
        return self._ref
302
302
 
303
303
    def _synchronize_history(self, destination, revision_id):