Show More
@@ -522,7 +522,10 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 | message = open(logfile).read() |
|
525 | if logfile == '-': | |
|
526 | message = sys.stdin.read() | |||
|
527 | else: | |||
|
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)) | |
528 |
|
531 |
General Comments 0
You need to be logged in to leave comments.
Login now