D1964: revsetlang: fix a doctest example on Python 3
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Thu Feb 1 15:25:08 EST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf4faae661968: revsetlang: fix a doctest example on Python 3 (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D1964?vs=5038&id=5051
REVISION DETAIL
https://phab.mercurial-scm.org/D1964
AFFECTED FILES
mercurial/revsetlang.py
CHANGE DETAILS
diff --git a/mercurial/revsetlang.py b/mercurial/revsetlang.py
--- a/mercurial/revsetlang.py
+++ b/mercurial/revsetlang.py
@@ -635,7 +635,7 @@
"root(_list('a\\\\x00b\\\\x00c\\\\x00d'))"
>>> formatspec(b'sort(%r, %ps)', b':', [b'desc', b'user'])
"sort((:), 'desc', 'user')"
- >>> formatspec('%ls', ['a', "'"])
+ >>> formatspec(b'%ls', [b'a', b"'"])
"_list('a\\\\x00\\\\'')"
'''
expr = pycompat.bytestr(expr)
To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list