Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 761:0fb498458905
Change all references to -t --text commit message to -m and --message.
author | Andrew Thompson <andrewkt@aktzero.com> |
---|---|
date | Fri, 22 Jul 2005 15:59:13 +0100 |
parents | c5db9581bfa6 |
children | 312b4a10d862 |
comparison
equal
deleted
inserted
replaced
760:73540173e14c | 761:0fb498458905 |
---|---|
458 | 458 |
459 d.close() | 459 d.close() |
460 | 460 |
461 def commit(ui, repo, *files, **opts): | 461 def commit(ui, repo, *files, **opts): |
462 """commit the specified files or all outstanding changes""" | 462 """commit the specified files or all outstanding changes""" |
463 text = opts['text'] | 463 text = opts['message'] or opts['text'] |
464 logfile = opts['logfile'] | 464 logfile = opts['logfile'] |
465 if not text and logfile: | 465 if not text and logfile: |
466 try: | 466 try: |
467 text = open(logfile).read() | 467 text = open(logfile).read() |
468 except IOError, why: | 468 except IOError, why: |
1099 [('U', 'noupdate', None, 'skip update after cloning')], | 1099 [('U', 'noupdate', None, 'skip update after cloning')], |
1100 'hg clone [-U] SOURCE [DEST]'), | 1100 'hg clone [-U] SOURCE [DEST]'), |
1101 "^commit|ci": | 1101 "^commit|ci": |
1102 (commit, | 1102 (commit, |
1103 [('A', 'addremove', None, 'run add/remove during commit'), | 1103 [('A', 'addremove', None, 'run add/remove during commit'), |
1104 ('m', 'text', "", 'commit message'), | 1104 ('m', 'message', "", 'commit message'), |
1105 ('t', 'text', "", 'commit message (deprecated: use -m)'), | 1105 ('t', 'text', "", 'commit message (deprecated: use -m)'), |
1106 ('l', 'logfile', "", 'commit text file'), | 1106 ('l', 'logfile', "", 'commit text file'), |
1107 ('d', 'date', "", 'date code'), | 1107 ('d', 'date', "", 'date code'), |
1108 ('u', 'user', "", 'user')], | 1108 ('u', 'user', "", 'user')], |
1109 'hg commit [OPTION]... [FILE]...'), | 1109 'hg commit [OPTION]... [FILE]...'), |