bug https://bugs.launchpad.net/bzr/+bug/235055

Tom Cato Amundsen tca at tcamundsen.net
Mon Jun 2 09:18:17 BST 2008


Hello! Is the following a safe workaround for bug
https://bugs.launchpad.net/bzr/+bug/235055 ?
#235055 is a problem for GNU Solfege that converted the from using gnu
arch to bzr.

Tom Cato

=== modified file 'bzrlib/repository.py'
--- bzrlib/repository.py        2008-05-29 12:27:24 +0000
+++ bzrlib/repository.py        2008-06-02 07:59:38 +0000
@@ -1567,7 +1567,10 @@
             # RevisionNotPresent here until we see a use for it,
because of the
             # cost in an inner loop that is by its very nature O(history).
             # Robert Collins 20080326
-            parents = graph.get_parent_map([next_id])[next_id]
+            try:
+                parents = graph.get_parent_map([next_id])[next_id]
+            except KeyError, e:
+                return
             if len(parents) == 0:
                 return
             else:



More information about the bazaar mailing list