HomePhabricator

py3: use .startswith() instead of bytes[0]

Authored by pulkit.

Description

py3: use .startswith() instead of bytes[0]

Doing bytes[0] will return the ascii value of that position which breaks
comparison with a bytechar.

This makes test-absorb.t work again on py3.

Differential Revision: https://phab.mercurial-scm.org/D6508

Details

Committed
pulkitTue, Jun 11, 8:46 AM
Differential Revision
D6508: py3: use .startswith() instead of bytes[0]
Parents
rHG43c8f72184f4: revset: fix merge() to fall back to changectx API if wdir specified
Branches
Unknown
Tags
Unknown