Show More
@@ -522,6 +522,9 b' def commit(ui, repo, *pats, **opts):' | |||||
522 | logfile = opts['logfile'] |
|
522 | logfile = opts['logfile'] | |
523 | if not message and logfile: |
|
523 | if not message and logfile: | |
524 | try: |
|
524 | try: | |
|
525 | if logfile == '-': | |||
|
526 | message = sys.stdin.read() | |||
|
527 | else: | |||
525 | message = open(logfile).read() |
|
528 | message = open(logfile).read() | |
526 | except IOError, why: |
|
529 | except IOError, why: | |
527 | ui.warn("Can't read commit message %s: %s\n" % (logfile, why)) |
|
530 | ui.warn("Can't read commit message %s: %s\n" % (logfile, why)) |
General Comments 0
You need to be logged in to leave comments.
Login now