changeset 348:af1508b7ad54

test_push_command: improve readability a bit.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Fri, 22 May 2009 13:41:21 +0200
parents 537de0300510
children 5d0d9424913f
files tests/test_push_command.py
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test_push_command.py
+++ b/tests/test_push_command.py
@@ -82,13 +82,13 @@ class PushTests(test_util.TestBase):
                                               copied=False)
                 raise IOError()
             ctx = context.memctx(repo,
-                                 (repo['default'].node(), node.nullid),
-                                 'automated test',
-                                 ['adding_file'],
-                                 file_callback,
-                                 'an_author',
-                                 '2008-10-07 20:59:48 -0500',
-                                 {'branch': 'default',})
+                                 parents=(repo['default'].node(), node.nullid),
+                                 text='automated test',
+                                 files=['adding_file'],
+                                 filectxfn=file_callback,
+                                 user='an_author',
+                                 date='2008-10-07 20:59:48 -0500',
+                                 extra={'branch': 'default',})
             new_hash = repo.commitctx(ctx)
             if not commit:
                 return # some tests use this test as an extended setup.