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