aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/command/diff.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-15 03:31:48 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-15 03:31:48 -0500
commit58bedebfddbb8e1fc8f0a441163526feaecb753b (patch)
treebb317cf59f834e45182aad4f816ea13f3fd76f6e /libbe/command/diff.py
parenteb26ca7e4a6886f97740c45e9e3b7bdd2d08d76f (diff)
downloadbugseverywhere-58bedebfddbb8e1fc8f0a441163526feaecb753b.tar.gz
Transition to Command-format complete.
Well, except for going through and updating the _long_help() strings. $ python test.py libbe.command succeeds for everything except Diff and Subscribe, which is expected since I haven't fixed up libbe.diff yet.
Diffstat (limited to 'libbe/command/diff.py')
-rw-r--r--libbe/command/diff.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/libbe/command/diff.py b/libbe/command/diff.py
index 05242db..6a7c36b 100644
--- a/libbe/command/diff.py
+++ b/libbe/command/diff.py
@@ -30,7 +30,7 @@ class Diff (libbe.command.Command):
>>> import sys
>>> import libbe.bugdir
>>> bd = libbe.bugdir.SimpleBugDir(memory=False)
- >>> cmd = Subscribe()
+ >>> cmd = Diff()
>>> cmd._storage = bd.storage
>>> cmd._setup_io = lambda i_enc,o_enc : None
>>> cmd.stdout = sys.stdout
@@ -38,8 +38,8 @@ class Diff (libbe.command.Command):
>>> original = bd.storage.commit('Original status')
>>> bug = bd.bug_from_uuid('a')
>>> bug.status = 'closed'
- >>> changed = bd.vcs.commit('Closed bug a')
- >>> if bd.vcs.versioned == True:
+ >>> changed = bd.storage.commit('Closed bug a')
+ >>> if bd.storage.versioned == True:
... ret = cmd.run(args=[original])
... else:
... print 'Modified bugs:\\n a:cm: Bug A\\n Changed bug settings:\\n status: open -> closed'
@@ -47,12 +47,12 @@ class Diff (libbe.command.Command):
a:cm: Bug A
Changed bug settings:
status: open -> closed
- >>> if bd.vcs.versioned == True:
+ >>> if bd.storage.versioned == True:
... ret = cmd.run({'subscribe':'%(bugdir_id)s:mod', 'uuids':True}, [original])
... else:
... print 'a'
a
- >>> if bd.vcs.versioned == False:
+ >>> if bd.storage.versioned == False:
... ret = cmd.run(args=[original])
... else:
... raise libbe.command.UserError('This repository not revision-controlled.')
@@ -131,10 +131,10 @@ class Diff (libbe.command.Command):
def _long_help(self):
return """
-Uses the VCS to compare the current tree with a previous tree, and
-prints a pretty report. If REVISION is given, it is a specifier for
-the particular previous tree to use. Specifiers are specific to their
-VCS.
+Uses the storage backend to compare the current tree with a previous
+tree, and prints a pretty report. If REVISION is given, it is a
+specifier for the particular previous tree to use. Specifiers are
+specific to their storage backend.
For Arch your specifier must be a fully-qualified revision name.