Rev 3524: We don't even have has_version in http://bzr.arbash-meinel.com/branches/bzr/1.6-dev/merge3_per_file
John Arbash Meinel
john at arbash-meinel.com
Fri Jun 27 00:52:49 BST 2008
At http://bzr.arbash-meinel.com/branches/bzr/1.6-dev/merge3_per_file
------------------------------------------------------------
revno: 3524
revision-id: john at arbash-meinel.com-20080626235243-d1sli6ayrssk7bym
parent: john at arbash-meinel.com-20080626234510-83rvxj28ssj9qvp0
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: merge3_per_file
timestamp: Thu 2008-06-26 18:52:43 -0500
message:
We don't even have has_version
-------------- next part --------------
=== modified file 'bzrlib/merge.py'
--- a/bzrlib/merge.py 2008-06-26 23:45:10 +0000
+++ b/bzrlib/merge.py 2008-06-26 23:52:43 +0000
@@ -1594,7 +1594,7 @@
if not cur_lcas:
mutter('no common ancestor, using NULL')
unique_lca = NULL_REVISION
- if not self.vf.has_version(NULL_REVISION):
+ if NULL_REVISION not in self.vf.get_parent_map([NULL_REVISION]):
self.vf.add_lines(NULL_REVISION, [], [])
else:
unique_lca = cur_lcas.pop()
@@ -1626,7 +1626,7 @@
unique_lca = self.graph.find_unique_lca(self.a_rev, self.b_rev)
except errors.NoCommonAncestor:
unique_lca = NULL_REVISION
- if not self.vf.has_version(NULL_REVISION):
+ if NULL_REVISION not in self.vf.get_parent_map([NULL_REVISION]):
self.vf.add_lines(NULL_REVISION, [], [])
return self._find_unique_parents((self.a_rev, self.b_rev), unique_lca)
More information about the bazaar-commits
mailing list