From 0fbf5228f40a93b6090f5bfc392d4fb58349ed04 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 18 Jan 2010 12:29:09 -0500 Subject: [PATCH] Use RevisionedBugDir, not .duplicate_bugdir() in libbe.command.diff --- libbe/command/diff.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libbe/command/diff.py b/libbe/command/diff.py index 4db7c17..967ab14 100644 --- a/libbe/command/diff.py +++ b/libbe/command/diff.py @@ -17,6 +17,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. import libbe +import libbe.bugdir import libbe.bug import libbe.command import libbe.command.util @@ -95,11 +96,11 @@ class Diff (libbe.command.Command): if params['repo'] == None: if params['revision'] == None: # get the most recent revision params['revision'] = bugdir.storage.revision_id(-1) - old_bd = bugdir.duplicate_bugdir(params['revision']) + old_bd = libbe.bugdir.RevisionedBugDir(bugdir, params['revision']) else: old_storage = libbe.storage.get_storage(params['repo']) old_storage.connect() - old_bd_current = bugdir.BugDir(old_storage, from_disk=True) + old_bd_current = libbe.bugdir.BugDir(old_storage, from_disk=True) if params['revision'] == None: # use the current working state old_bd = old_bd_current else: @@ -107,7 +108,7 @@ class Diff (libbe.command.Command): raise libbe.command.UserError( '%s is not revision-controlled.' % storage.repo) - old_bd = old_bd_current.duplicate_bugdir(revision) + old_bd = libbe.bugdir.RevisionedBugDir(old_bd_current,revision) d = libbe.diff.Diff(old_bd, bugdir) tree = d.report_tree(subscriptions) -- 2.26.2