Show More
@@ -2636,8 +2636,12 b' def cat(ui, repo, ctx, matcher, fntempla' | |||||
2636 | err = 1 |
|
2636 | err = 1 | |
2637 |
|
2637 | |||
2638 | def write(path): |
|
2638 | def write(path): | |
2639 | fp = makefileobj(repo, fntemplate, ctx.node(), |
|
2639 | if fntemplate: | |
2640 | pathname=os.path.join(prefix, path)) |
|
2640 | filename = makefilename(repo, fntemplate, ctx.node(), | |
|
2641 | pathname=os.path.join(prefix, path)) | |||
|
2642 | fp = open(filename, 'wb') | |||
|
2643 | else: | |||
|
2644 | fp = _unclosablefile(ui.fout) | |||
2641 | data = ctx[path].data() |
|
2645 | data = ctx[path].data() | |
2642 | if opts.get('decode'): |
|
2646 | if opts.get('decode'): | |
2643 | data = repo.wwritedata(path, data) |
|
2647 | data = repo.wwritedata(path, data) |
General Comments 0
You need to be logged in to leave comments.
Login now