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

Fix undefined error.

Show diffs side-by-side

added added

removed removed

Lines of Context:
264
264
        self.set_last_revision(revid)
265
265
 
266
266
    def set_last_revision(self, revid):
267
 
        (self.head, self.mapping) = self.mapping.revision_id_bzr_to_foreign(
 
267
        (newhead, self.mapping) = self.mapping.revision_id_bzr_to_foreign(
268
268
                revid)
 
269
        self.head = newhead
269
270
 
270
271
    def _set_head(self, value):
271
272
        self._head = value
310
311
        # Try in source branch first, it'll be faster
311
312
        try:
312
313
            return self.source_branch.revision_id_to_revno(revid)
313
 
        except NoSuchRevision:
 
314
        except errors.NoSuchRevision:
314
315
            # FIXME: Check using graph.find_distance_to_null() ?
315
316
            return self.target_branch.revision_id_to_revno(revid)
316
317