##// END OF EJS Templates
cmdutil: fix mode handling in make_file
Adrian Buehlmann -
r13769:8796fb6a default
parent child Browse files
Show More
@@ -230,7 +230,7 def make_filename(repo, pat, node,
230 def make_file(repo, pat, node=None,
230 def make_file(repo, pat, node=None,
231 total=None, seqno=None, revwidth=None, mode='wb', pathname=None):
231 total=None, seqno=None, revwidth=None, mode='wb', pathname=None):
232
232
233 writable = 'w' in mode or 'a' in mode
233 writable = mode not in ('r', 'rb')
234
234
235 if not pat or pat == '-':
235 if not pat or pat == '-':
236 fp = writable and sys.stdout or sys.stdin
236 fp = writable and sys.stdout or sys.stdin
General Comments 0
You need to be logged in to leave comments. Login now