Mercurial > hgsubversion
changeset 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 | 35a1e93b6f78 |
children | a45365f1492a |
files | tests/test_push_command.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
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!'