core (tools/utils): fixed hex conversion in getRepositoryData following Python 3 port
This commit is contained in:
parent
24aa7d2e38
commit
48b13f0aeb
1 changed files with 2 additions and 2 deletions
|
|
@ -213,8 +213,8 @@ def getRepositoryData(module, as_string=True, is_path=False):
|
|||
else:
|
||||
os.chdir(os.path.abspath(os.path.dirname(repos_root)))
|
||||
try:
|
||||
with open(".hg/dirstate") as hg_dirstate:
|
||||
hg_data["node"] = hg_dirstate.read(20).encode("hex")
|
||||
with open(".hg/dirstate", 'rb') as hg_dirstate:
|
||||
hg_data["node"] = hg_dirstate.read(20).hex()
|
||||
hg_data["node_short"] = hg_data["node"][:12]
|
||||
except IOError:
|
||||
log.debug("Can't access repository data")
|
||||
|
|
|
|||
Loading…
Reference in a new issue