diff tests/test_push_command.py @ 690:4b55fb6d6847

tests: remove constant rev no from test script
author Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
date Wed, 08 Sep 2010 10:42:53 +0200
parents e910e3ebd23b
children c2b9e08ecf10
line wrap: on
line diff
--- a/tests/test_push_command.py
+++ b/tests/test_push_command.py
@@ -471,12 +471,13 @@ class PushTests(test_util.TestBase):
         self.test_push_two_revs()
         changes = [('adding_file', 'adding_file', 'different_content', ),
                    ]
-        self.commitchanges(changes, parent='tip')
+        par = self.repo['tip'].rev()
+        self.commitchanges(changes, parent=par)
         self.pushrevisions()
         changes = [('adding_file', 'adding_file',
                     'even_more different_content', ),
                    ]
-        self.commitchanges(changes, parent=3)
+        self.commitchanges(changes, parent=par)
         try:
             self.pushrevisions()
             assert False, 'This should have aborted!'