D4677: py3: encode the name to bytes before using in revsetpredicate()
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Thu Sep 20 15:42:37 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG65b39c556c6d: py3: encode the name to bytes before using in revsetpredicate() (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D4677?vs=11214&id=11233
REVISION DETAIL
https://phab.mercurial-scm.org/D4677
AFFECTED FILES
tests/test-extension.t
CHANGE DETAILS
diff --git a/tests/test-extension.t b/tests/test-extension.t
--- a/tests/test-extension.t
+++ b/tests/test-extension.t
@@ -105,13 +105,14 @@
> def reposetup(ui, repo):
> print("4) %s reposetup" % name)
>
+ > bytesname = name.encode('utf-8')
> # custom predicate to check registration of functions at loading
> from mercurial import (
> registrar,
> smartset,
> )
> revsetpredicate = registrar.revsetpredicate()
- > @revsetpredicate(name, safe=True) # safe=True for query via hgweb
+ > @revsetpredicate(bytesname, safe=True) # safe=True for query via hgweb
> def custompredicate(repo, subset, x):
> return smartset.baseset([r for r in subset if r in {0}])
> EOF
To: pulkit, #hg-reviewers
Cc: indygreg, mjpieters, mercurial-devel
More information about the Mercurial-devel
mailing list