[BUG] rsync plugin doesn't find compare_trees

William Dodé wilk-ml at flibuste.net
Tue Jul 5 15:08:30 BST 2005


Hi,

In the last revno (835) rsync plugin doesn't find compare_trees in
bzrlib. This patch find compare_trees in bzrlib.diff

*** modified file 'plugins/rsync/rsync_update.py'
--- plugins/rsync/rsync_update.py 
+++ plugins/rsync/rsync_update.py 
@@ -6,6 +6,7 @@
 
 import os
 import bzrlib
+import bzrlib.diff
 
 _rsync_location = 'x-rsync-data'
 _parent_locations = ['parent', 'pull', 'x-pull']
@@ -42,7 +43,7 @@
     for path, file_class, kind, file_id in new_tree.list_files():
         if file_class == '?':
             return False
-    delta = bzrlib.compare_trees(old_tree, new_tree, want_unchanged=False)
+    delta = bzrlib.diff.compare_trees(old_tree, new_tree, want_unchanged=False)
     if len(delta.added) > 0 or len(delta.removed) > 0 or \
         len(delta.modified) > 0:
         return False


-- 
William Dodé - http://flibuste.net





More information about the bazaar mailing list