comparison tests/test_push_command.py @ 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 88ba55ad58c0
children 5d0d9424913f
comparison
equal deleted inserted replaced
347:537de0300510 348:af1508b7ad54
80 islink=False, 80 islink=False,
81 isexec=False, 81 isexec=False,
82 copied=False) 82 copied=False)
83 raise IOError() 83 raise IOError()
84 ctx = context.memctx(repo, 84 ctx = context.memctx(repo,
85 (repo['default'].node(), node.nullid), 85 parents=(repo['default'].node(), node.nullid),
86 'automated test', 86 text='automated test',
87 ['adding_file'], 87 files=['adding_file'],
88 file_callback, 88 filectxfn=file_callback,
89 'an_author', 89 user='an_author',
90 '2008-10-07 20:59:48 -0500', 90 date='2008-10-07 20:59:48 -0500',
91 {'branch': 'default',}) 91 extra={'branch': 'default',})
92 new_hash = repo.commitctx(ctx) 92 new_hash = repo.commitctx(ctx)
93 if not commit: 93 if not commit:
94 return # some tests use this test as an extended setup. 94 return # some tests use this test as an extended setup.
95 hg.update(repo, repo['tip'].node()) 95 hg.update(repo, repo['tip'].node())
96 oldauthor = repo['tip'].user() 96 oldauthor = repo['tip'].user()