Rev 1362: Fix ancestry tests. in http://people.samba.org/bzr/jelmer/bzr-svn/0.4
Jelmer Vernooij
jelmer at samba.org
Thu Jun 26 23:58:21 BST 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/0.4
------------------------------------------------------------
revno: 1362
revision-id: jelmer at samba.org-20080626225821-7sm60iyxqkumi3qr
parent: jelmer at samba.org-20080626223840-p31esv00vqkqqyyr
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Fri 2008-06-27 00:58:21 +0200
message:
Fix ancestry tests.
modified:
repository.py repository.py-20060306123302-1f8c5069b3fe0265
=== modified file 'repository.py'
--- a/repository.py 2008-06-26 16:27:42 +0000
+++ b/repository.py 2008-06-26 22:58:21 +0000
@@ -381,6 +381,8 @@
ancestry = []
graph = self.get_graph()
for rev, parents in graph.iter_ancestry([revision_id]):
+ if rev == NULL_REVISION:
+ rev = None
ancestry.append(rev)
ancestry.reverse()
return ancestry
More information about the bazaar-commits
mailing list