D2547: purge: apply byteskwargs to opts, fixing all python3 issues here
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Fri Mar 2 14:51:04 UTC 2018
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2547
AFFECTED FILES
hgext/purge.py
CHANGE DETAILS
diff --git a/hgext/purge.py b/hgext/purge.py
--- a/hgext/purge.py
+++ b/hgext/purge.py
@@ -31,6 +31,7 @@
from mercurial import (
cmdutil,
error,
+ pycompat,
registrar,
scmutil,
util,
@@ -84,6 +85,7 @@
list of files that this program would delete, use the --print
option.
'''
+ opts = pycompat.byteskwargs(opts)
act = not opts.get('print')
eol = '\n'
if opts.get('print0'):
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list