[PATCH] rawcommit fix again
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[PATCH] rawcommit fix again
From: Christopher Li <hg@chrisli.org>
Rawcommit need to allow no argument when using file list options.
Chris
manifest hash:
049977598f355ad9e54eeb18f8831fc4c1fee36d
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCuMR9ywK+sNU5EO8RArXFAJ98iZaSIzsc0KBgtMW5v4yVuWfpZQCdH2yQ
bYOgCTRNapYqq5YtnOHfErk=
=1Poe
-----END PGP SIGNATURE-----
--- a/mercurial/commands.py Tue Jun 21 17:50:37 2005 -0800
+++ b/mercurial/commands.py Tue Jun 21 17:53:01 2005 -0800
@@ -520,7 +520,7 @@
os.kill(child, signal.SIGTERM)
return r
-def rawcommit(ui, repo, flist, **rc):
+def rawcommit(ui, repo, *flist, **rc):
"raw commit interface"
text = rc['text']
@@ -531,7 +531,7 @@
print "missing commit text"
return 1
- files = relpath(repo, flist)
+ files = relpath(repo, list(flist))
if rc['files']:
files += open(rc['files']).read().splitlines()