Rev 1591: Use repository graph to find revno. in http://people.samba.org/bzr/jelmer/bzr-svn/trunk

Jelmer Vernooij jelmer at samba.org
Fri Aug 22 00:51:20 BST 2008


At http://people.samba.org/bzr/jelmer/bzr-svn/trunk

------------------------------------------------------------
revno: 1591
revision-id: jelmer at samba.org-20080821235116-xrn3h0iclv9y34to
parent: jelmer at samba.org-20080821225330-tly690m4unap3ran
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Fri 2008-08-22 01:51:16 +0200
message:
  Use repository graph to find revno.
modified:
  commit.py                      commit.py-20060607190346-qvq128wgfubhhgm2-1
=== modified file 'commit.py'
--- a/commit.py	2008-08-09 01:58:00 +0000
+++ b/commit.py	2008-08-21 23:51:16 +0000
@@ -155,7 +155,8 @@
         else:
             self.base_revid = parents[0]
 
-        self.base_revno = self.branch.revision_id_to_revno(self.base_revid)
+        graph = self.repository.get_graph()
+        self.base_revno = graph.find_distance_to_null(self.base_revid, [])
         if self.base_revid == NULL_REVISION:
             self.base_revnum = -1
             self.base_path = None




More information about the bazaar-commits mailing list