Show More
@@ -181,7 +181,7 b' def parsealiases(cmd):' | |||||
181 | def setupwrapcolorwrite(ui): |
|
181 | def setupwrapcolorwrite(ui): | |
182 | # wrap ui.write so diff output can be labeled/colorized |
|
182 | # wrap ui.write so diff output can be labeled/colorized | |
183 | def wrapwrite(orig, *args, **kw): |
|
183 | def wrapwrite(orig, *args, **kw): | |
184 | label = kw.pop('label', '') |
|
184 | label = kw.pop(r'label', '') | |
185 | for chunk, l in patch.difflabel(lambda: args): |
|
185 | for chunk, l in patch.difflabel(lambda: args): | |
186 | orig(chunk, label=label + l) |
|
186 | orig(chunk, label=label + l) | |
187 |
|
187 | |||
@@ -372,7 +372,7 b' def dorecord(ui, repo, commitfunc, cmdsu' | |||||
372 |
|
372 | |||
373 | # Make all of the pathnames absolute. |
|
373 | # Make all of the pathnames absolute. | |
374 | newfiles = [repo.wjoin(nf) for nf in newfiles] |
|
374 | newfiles = [repo.wjoin(nf) for nf in newfiles] | |
375 | return commitfunc(ui, repo, *newfiles, **opts) |
|
375 | return commitfunc(ui, repo, *newfiles, **pycompat.strkwargs(opts)) | |
376 | finally: |
|
376 | finally: | |
377 | # 5. finally restore backed-up files |
|
377 | # 5. finally restore backed-up files | |
378 | try: |
|
378 | try: | |
@@ -1334,7 +1334,8 b' def tryimportone(ui, repo, hunk, parents' | |||||
1334 | if opts.get('exact'): |
|
1334 | if opts.get('exact'): | |
1335 | editor = None |
|
1335 | editor = None | |
1336 | else: |
|
1336 | else: | |
1337 |
editor = getcommiteditor(editform=editform, |
|
1337 | editor = getcommiteditor(editform=editform, | |
|
1338 | **pycompat.strkwargs(opts)) | |||
1338 | extra = {} |
|
1339 | extra = {} | |
1339 | for idfunc in extrapreimport: |
|
1340 | for idfunc in extrapreimport: | |
1340 | extrapreimportmap[idfunc](repo, extractdata, extra, opts) |
|
1341 | extrapreimportmap[idfunc](repo, extractdata, extra, opts) | |
@@ -2717,7 +2718,7 b' def displaygraph(ui, repo, dag, displaye' | |||||
2717 | firstedge = next(edges) |
|
2718 | firstedge = next(edges) | |
2718 | width = firstedge[2] |
|
2719 | width = firstedge[2] | |
2719 | displayer.show(ctx, copies=copies, matchfn=revmatchfn, |
|
2720 | displayer.show(ctx, copies=copies, matchfn=revmatchfn, | |
2720 | _graphwidth=width, **props) |
|
2721 | _graphwidth=width, **pycompat.strkwargs(props)) | |
2721 | lines = displayer.hunk.pop(rev).split('\n') |
|
2722 | lines = displayer.hunk.pop(rev).split('\n') | |
2722 | if not lines[-1]: |
|
2723 | if not lines[-1]: | |
2723 | del lines[-1] |
|
2724 | del lines[-1] | |
@@ -3008,6 +3009,7 b' def remove(ui, repo, m, prefix, after, f' | |||||
3008 |
|
3009 | |||
3009 | def cat(ui, repo, ctx, matcher, basefm, fntemplate, prefix, **opts): |
|
3010 | def cat(ui, repo, ctx, matcher, basefm, fntemplate, prefix, **opts): | |
3010 | err = 1 |
|
3011 | err = 1 | |
|
3012 | opts = pycompat.byteskwargs(opts) | |||
3011 |
|
3013 | |||
3012 | def write(path): |
|
3014 | def write(path): | |
3013 | filename = None |
|
3015 | filename = None | |
@@ -3050,7 +3052,8 b' def cat(ui, repo, ctx, matcher, basefm, ' | |||||
3050 | submatch = matchmod.subdirmatcher(subpath, matcher) |
|
3052 | submatch = matchmod.subdirmatcher(subpath, matcher) | |
3051 |
|
3053 | |||
3052 | if not sub.cat(submatch, basefm, fntemplate, |
|
3054 | if not sub.cat(submatch, basefm, fntemplate, | |
3053 |
os.path.join(prefix, sub._path), |
|
3055 | os.path.join(prefix, sub._path), | |
|
3056 | **pycompat.strkwargs(opts)): | |||
3054 | err = 0 |
|
3057 | err = 0 | |
3055 | except error.RepoLookupError: |
|
3058 | except error.RepoLookupError: | |
3056 | ui.status(_("skipping missing subrepository: %s\n") |
|
3059 | ui.status(_("skipping missing subrepository: %s\n") |
General Comments 0
You need to be logged in to leave comments.
Login now