Show More
@@ -246,6 +246,8 b' def commit(ui, repo, *files, **opts):' | |||
|
246 | 246 | try: text = open(opts['logfile']).read() |
|
247 | 247 | except IOError: pass |
|
248 | 248 | |
|
249 | if opts['addremove']: | |
|
250 | addremove(ui, repo, *files) | |
|
249 | 251 | repo.commit(relpath(repo, files), text, opts['user'], opts['date']) |
|
250 | 252 | |
|
251 | 253 | def debugaddchangegroup(ui, repo): |
@@ -596,6 +598,7 b' table = {' | |||
|
596 | 598 | "cat|dump": (cat, [], 'hg cat <file> [rev]'), |
|
597 | 599 | "commit|ci": (commit, |
|
598 | 600 | [('t', 'text', "", 'commit text'), |
|
601 | ('A', 'addremove', None, 'run add/remove during commit'), | |
|
599 | 602 | ('l', 'logfile', "", 'commit text file'), |
|
600 | 603 | ('d', 'date', "", 'data'), |
|
601 | 604 | ('u', 'user', "", 'user')], |
General Comments 0
You need to be logged in to leave comments.
Login now