Mercurial > python-hglib
comparison hglib/context.py @ 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 |
comparison
equal
deleted
inserted
replaced
155:6ec4075191ce | 156:6d273d0a51aa |
---|---|
213 return bool(self._repo.log(revrange=self._node + b(' and hidden()'), | 213 return bool(self._repo.log(revrange=self._node + b(' and hidden()'), |
214 hidden=True)) | 214 hidden=True)) |
215 | 215 |
216 def phase(self): | 216 def phase(self): |
217 """return the phase of the changeset (public, draft or secret)""" | 217 """return the phase of the changeset (public, draft or secret)""" |
218 return self._repo.phase(str(self._rev))[0][1] | 218 return self._repo.phase(strtobytes(self._rev))[0][1] |
219 | 219 |
220 def children(self): | 220 def children(self): |
221 """return contexts for each child changeset""" | 221 """return contexts for each child changeset""" |
222 for c in self._repo.log(b('children(') + self._node + b(')')): | 222 for c in self._repo.log(b('children(') + self._node + b(')')): |
223 yield changectx(self._repo, c) | 223 yield changectx(self._repo, c) |