Rev 2254: Fix tests. in http://people.samba.org/bzr/jelmer/bzr-svn/0.5
Jelmer Vernooij
jelmer at samba.org
Mon Dec 8 20:57:52 GMT 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/0.5
------------------------------------------------------------
revno: 2254
revision-id: jelmer at samba.org-20081208205749-wzpyacjhxoz3hta4
parent: jelmer at samba.org-20081208204820-1iv08johco067nur
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.5
timestamp: Mon 2008-12-08 21:57:49 +0100
message:
Fix tests.
modified:
commit.py commit.py-20060607190346-qvq128wgfubhhgm2-1
=== modified file 'commit.py'
--- a/commit.py 2008-12-08 20:48:20 +0000
+++ b/commit.py 2008-12-08 20:57:49 +0000
@@ -905,7 +905,7 @@
"""
assert rev.revision_id in (None, revision_id)
old_tree = source_repo.revision_tree(revision_id)
- base_tree = source_repo.revision_tree(rev.parent_ids[0])
+ base_tree = source_repo.revision_tree(rev.parent_ids[0] if rev.parent_ids else NULL_REVISION)
if push_metadata:
base_revids = rev.parent_ids
More information about the bazaar-commits
mailing list