Exemple #1
0
 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_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
Exemple #3
0
 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)
Exemple #4
0
 def _as_revision_id(self, context_branch):
     return osutils.safe_revision_id(self.spec, warn=False)
Exemple #5
0
 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)
Exemple #6
0
 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)