Description: Work around Branch.revision_history() being deprecated in bzr 2.5
Author: Jelmer Vernooij <jelmer@debian.org>

=== modified file 'bzrtools.py'
--- old/bzrtools.py	2011-08-29 17:00:45 +0000
+++ new/bzrtools.py	2011-11-21 21:44:24 +0000
@@ -238,7 +238,14 @@
 
 
 def history_subset(location, branch, _rsync=None):
-    local_history = branch.revision_history()
+    branch.lock_read()
+    try:
+        graph = branch.repository.get_graph()
+        local_history = list(graph.iter_lefthand_ancestry(
+            branch.last_revision(), [_mod_revision.NULL_REVISION]))
+        local_history.reverse()
+    finally:
+        branch.unlock()
     try:
         remote_history = get_revision_history(location, _rsync)
     except RsyncNoFile:

