/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

  • Committer: Jelmer Vernooij
  • Date: 2010-03-23 14:19:02 UTC
  • mto: (0.254.18 index-based)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20100323141902-d8kba8r2jmu357v6
Look for heads a bit harder.

Show diffs side-by-side

added added

removed removed

Lines of Context:
341
341
        if self._ref is not None:
342
342
            return self._ref
343
343
        heads = self.repository.get_refs()
344
 
        if not self.name in heads:
 
344
        if self.name in heads:
 
345
            self._ref = heads[self.name]
 
346
        elif ("refs/heads/" + self.name) in heads:
 
347
            self._ref = heads["refs/heads/" + self.name]
 
348
        else:
345
349
            raise NoSuchRef(self.name)
346
 
        self._ref = heads[self.name]
347
350
        return self._ref
348
351
 
349
352
    def _synchronize_history(self, destination, revision_id):