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>'), |