Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
316:c48d069163d6 | 317:b18ce742566a |
---|---|
176 text = opts['text'] | 176 text = opts['text'] |
177 if not text and opts['logfile']: | 177 if not text and opts['logfile']: |
178 try: text = open(opts['logfile']).read() | 178 try: text = open(opts['logfile']).read() |
179 except IOError: pass | 179 except IOError: pass |
180 | 180 |
181 repo.commit(relpath(repo, files), text) | 181 repo.commit(relpath(repo, files), text, opts['user'], opts['date']) |
182 | 182 |
183 def debugaddchangegroup(ui, repo): | 183 def debugaddchangegroup(ui, repo): |
184 data = sys.stdin.read() | 184 data = sys.stdin.read() |
185 repo.addchangegroup(data) | 185 repo.addchangegroup(data) |
186 | 186 |
522 ('c', 'changeset', None, 'show changeset')], | 522 ('c', 'changeset', None, 'show changeset')], |
523 'hg annotate [-u] [-c] [-n] [-r id] [files]'), | 523 'hg annotate [-u] [-c] [-n] [-r id] [files]'), |
524 "cat|dump": (cat, [], 'hg cat <file> [rev]'), | 524 "cat|dump": (cat, [], 'hg cat <file> [rev]'), |
525 "commit|ci": (commit, | 525 "commit|ci": (commit, |
526 [('t', 'text', "", 'commit text'), | 526 [('t', 'text', "", 'commit text'), |
527 ('l', 'logfile', "", 'commit text file')], | 527 ('l', 'logfile', "", 'commit text file'), |
528 ('d', 'date', "", 'data'), | |
529 ('u', 'user', "", 'user')], | |
528 'hg commit [files]'), | 530 'hg commit [files]'), |
529 "debugaddchangegroup": (debugaddchangegroup, [], 'debugaddchangegroup'), | 531 "debugaddchangegroup": (debugaddchangegroup, [], 'debugaddchangegroup'), |
530 "debugchangegroup": (debugchangegroup, [], 'debugchangegroup [roots]'), | 532 "debugchangegroup": (debugchangegroup, [], 'debugchangegroup [roots]'), |
531 "debugindex": (debugindex, [], 'debugindex <file>'), | 533 "debugindex": (debugindex, [], 'debugindex <file>'), |
532 "debugindexdot": (debugindexdot, [], 'debugindexdot <file>'), | 534 "debugindexdot": (debugindexdot, [], 'debugindexdot <file>'), |