[PATCH 3 of 7 hglib] hglib: remove the user of str in hglib.context (issue5420)

Brett Cannon brett at python.org
Wed Mar 25 19:39:57 CDT 2015


# HG changeset patch
# User Brett Cannon <brett at python.org>
# Date 1427329149 14400
#      Wed Mar 25 20:19:09 2015 -0400
# Node ID 6d273d0a51aa24f9c837d67b656467f98f98786d
# Parent  6ec4075191ce919dcebdbf6b9f4e11948462030c
hglib: remove the user of str in hglib.context (issue5420)

diff -r 6ec4075191ce -r 6d273d0a51aa hglib/context.py
--- a/hglib/context.py	Wed Mar 25 20:17:21 2015 -0400
+++ b/hglib/context.py	Wed Mar 25 20:19:09 2015 -0400
@@ -215,7 +215,7 @@
 
     def phase(self):
         """return the phase of the changeset (public, draft or secret)"""
-        return self._repo.phase(str(self._rev))[0][1]
+        return self._repo.phase(strtobytes(self._rev))[0][1]
 
     def children(self):
         """return contexts for each child changeset"""


More information about the Mercurial-devel mailing list