[Pkg-bazaar-commits] ./bzr/unstable r942: - update convertinv to work with current weave code

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:21:31 UTC 2009


------------------------------------------------------------
revno: 942
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Mon 2005-07-18 10:12:43 -0300
message:
  - update convertinv to work with current weave code
modified:
  tools/convertfile.py
-------------- next part --------------
=== modified file 'tools/convertfile.py'
--- a/tools/convertfile.py	2005-07-07 10:22:02 +0000
+++ b/tools/convertfile.py	2005-07-18 13:12:43 +0000
@@ -21,8 +21,8 @@
 
 import sys
 import bzrlib.branch
-from weave import Weave
-from weavefile import write_weave
+from bzrlib.weave import Weave
+from bzrlib.weavefile import write_weave
 
 import hotshot
 import tempfile
@@ -62,7 +62,7 @@
         last_lines = text
         
         weave_id = wf.add(parents, text)
-        parents.add(weave_id)
+        parents = [weave_id]
 
         print '  %4d lines' % len(text)
 



More information about the Pkg-bazaar-commits mailing list