D3129: py3: use pycompat.byteskwargs() in tests/autodiff.py

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Thu Apr 5 09:48:08 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGcdccfe20eed7: py3: use pycompat.byteskwargs() in tests/autodiff.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3129?vs=7712&id=7727

REVISION DETAIL
  https://phab.mercurial-scm.org/D3129

AFFECTED FILES
  tests/autodiff.py

CHANGE DETAILS

diff --git a/tests/autodiff.py b/tests/autodiff.py
--- a/tests/autodiff.py
+++ b/tests/autodiff.py
@@ -5,6 +5,7 @@
 from mercurial import (
     error,
     patch,
+    pycompat,
     registrar,
     scmutil,
 )
@@ -16,6 +17,7 @@
     [(b'', b'git', b'', b'git upgrade mode (yes/no/auto/warn/abort)')],
     b'[OPTION]... [FILE]...')
 def autodiff(ui, repo, *pats, **opts):
+    opts = pycompat.byteskwargs(opts)
     diffopts = patch.difffeatureopts(ui, opts)
     git = opts.get(b'git', b'no')
     brokenfiles = set()



To: pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list