mercurial/pvec.py
changeset 43793 29adf0a087a1
parent 43479 8e89b6e1e0cd
parent 43746 10662ac7849e
child 44602 a89aa2d7b34d
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