##// END OF EJS Templates
py3: use pycompat.byteskwargs() in tests/autodiff.py...
Pulkit Goyal -
r37386:cdccfe20 default
parent child Browse files
Show More
@@ -5,6 +5,7 b' from __future__ import absolute_import'
5 from mercurial import (
5 from mercurial import (
6 error,
6 error,
7 patch,
7 patch,
8 pycompat,
8 registrar,
9 registrar,
9 scmutil,
10 scmutil,
10 )
11 )
@@ -16,6 +17,7 b' command = registrar.command(cmdtable)'
16 [(b'', b'git', b'', b'git upgrade mode (yes/no/auto/warn/abort)')],
17 [(b'', b'git', b'', b'git upgrade mode (yes/no/auto/warn/abort)')],
17 b'[OPTION]... [FILE]...')
18 b'[OPTION]... [FILE]...')
18 def autodiff(ui, repo, *pats, **opts):
19 def autodiff(ui, repo, *pats, **opts):
20 opts = pycompat.byteskwargs(opts)
19 diffopts = patch.difffeatureopts(ui, opts)
21 diffopts = patch.difffeatureopts(ui, opts)
20 git = opts.get(b'git', b'no')
22 git = opts.get(b'git', b'no')
21 brokenfiles = set()
23 brokenfiles = set()
General Comments 0
You need to be logged in to leave comments. Login now