def get_rev_id(last_changed, path, kind): if last_changed is not None: # last_changed will be a Unicode string because of how it was # read. Convert it back to utf8. changed_revision_id = osutils.safe_revision_id(last_changed, warn=False) else: changed_revision_id = revision_id bundle_tree.note_last_changed(path, changed_revision_id) return changed_revision_id
def get_revision(self, revision_id): """Return the Revision object for a named revision""" revision_id = osutils.safe_revision_id(revision_id) return self.get_revision_reconcile(revision_id)
def _as_revision_id(self, context_branch): return osutils.safe_revision_id(self.spec, warn=False)
def _match_on(self, branch, revs): # self.spec comes straight from parsing the command line arguments, # so we expect it to be a Unicode string. Switch it to the internal # representation. revision_id = osutils.safe_revision_id(self.spec, warn=False) return RevisionInfo.from_revision_id(branch, revision_id, revs)