changeset 156:6d273d0a51aa

hglib: remove the user of str in hglib.context (issue5420)
author Brett Cannon <brett@python.org>
date Wed, 25 Mar 2015 20:19:09 -0400
parents 6ec4075191ce
children 6564544576b9
files hglib/context.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"""