D3636: py3: use pycompat.fsencode() to convert user value to bytes

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Sun May 20 09:40:10 EDT 2018


pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3636

AFFECTED FILES
  mercurial/debugcommands.py

CHANGE DETAILS

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -1400,7 +1400,7 @@
             try:
                 st = vfs.lstat(name)
                 age = now - st[stat.ST_MTIME]
-                user = util.username(st.st_uid)
+                user = pycompat.fsencode(util.username(st.st_uid))
                 locker = vfs.readlock(name)
                 if ":" in locker:
                     host, pid = locker.split(':')



To: pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list