[Pkg-bazaar-commits] ./bzr/unstable r785: - add test for external revert command
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 08:21:02 UTC 2009
------------------------------------------------------------
revno: 785
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Fri 2005-06-24 21:15:37 +1000
message:
- add test for external revert command
modified:
bzrlib/selftest/blackbox.py
-------------- next part --------------
=== modified file 'bzrlib/selftest/blackbox.py'
--- a/bzrlib/selftest/blackbox.py 2005-06-24 11:05:18 +0000
+++ b/bzrlib/selftest/blackbox.py 2005-06-24 11:15:37 +0000
@@ -345,6 +345,18 @@
+class RevertCommand(InTempDir):
+ def runTest(self):
+ self.runcmd('bzr init')
+
+ file('hello', 'wt').write('foo')
+ self.runcmd('bzr add hello')
+ self.runcmd('bzr commit -m setup hello')
+
+ file('hello', 'wt').write('bar')
+ self.runcmd('bzr revert hello')
+ self.check_file_contents('hello', 'foo')
+
@@ -362,5 +374,7 @@
HelpCommands(),
UserIdentity(),
InvalidCommands(),
- OldTests()])
+ RevertCommand(),
+ OldTests(),
+ ])
return s
More information about the Pkg-bazaar-commits
mailing list