Mercurial > public > mercurial-scm > hg
comparison mercurial/pvec.py @ 43793:29adf0a087a1
merge with stable
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 05 Dec 2019 11:15:19 -0500 |
parents | 8e89b6e1e0cd 10662ac7849e |
children | a89aa2d7b34d |
comparison
equal
deleted
inserted
replaced
43790:765a9c299c44 | 43793:29adf0a087a1 |
---|---|
181 return pvec(util.b85encode(bs)) | 181 return pvec(util.b85encode(bs)) |
182 | 182 |
183 | 183 |
184 class pvec(object): | 184 class pvec(object): |
185 def __init__(self, hashorctx): | 185 def __init__(self, hashorctx): |
186 if isinstance(hashorctx, str): | 186 if isinstance(hashorctx, bytes): |
187 self._bs = hashorctx | 187 self._bs = hashorctx |
188 self._depth, self._vec = _split(util.b85decode(hashorctx)) | 188 self._depth, self._vec = _split(util.b85decode(hashorctx)) |
189 else: | 189 else: |
190 self._vec = ctxpvec(hashorctx) | 190 self._vec = ctxpvec(hashorctx) |
191 | 191 |