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

login
register
mail settings
Submitter Brett Cannon
Date March 26, 2015, 12:39 a.m.
Message ID <6d273d0a51aa24f9c837.1427330397@bcannon-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/8280/
State Accepted
Headers show

Comments

Brett Cannon - March 26, 2015, 12:39 a.m.
# HG changeset patch
# User Brett Cannon <brett@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)

Patch

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"""