Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 317:b18ce742566a
hg commit: user and date options
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hg commit: user and date options
- From Ted Ts'o
manifest hash: f6ce29eed387664c6f0631b666158eb930876cb3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCrHx4ywK+sNU5EO8RAp/uAKCEGhvm1tpBJ9Bub8BlalWaIpMeqgCfUejo
IoevMbk4cjxQ5P3Zo2pSFs8=
=Ibp3
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Sun, 12 Jun 2005 10:18:32 -0800 |
parents | 09375250eb31 |
children | 9ab17e83bce3 |
line wrap: on
line diff
--- a/mercurial/commands.py Sun Jun 12 08:51:11 2005 -0800 +++ b/mercurial/commands.py Sun Jun 12 10:18:32 2005 -0800 @@ -178,7 +178,7 @@ try: text = open(opts['logfile']).read() except IOError: pass - repo.commit(relpath(repo, files), text) + repo.commit(relpath(repo, files), text, opts['user'], opts['date']) def debugaddchangegroup(ui, repo): data = sys.stdin.read() @@ -524,7 +524,9 @@ "cat|dump": (cat, [], 'hg cat <file> [rev]'), "commit|ci": (commit, [('t', 'text', "", 'commit text'), - ('l', 'logfile', "", 'commit text file')], + ('l', 'logfile', "", 'commit text file'), + ('d', 'date', "", 'data'), + ('u', 'user', "", 'user')], 'hg commit [files]'), "debugaddchangegroup": (debugaddchangegroup, [], 'debugaddchangegroup'), "debugchangegroup": (debugchangegroup, [], 'debugchangegroup [roots]'),