D5608: shallowutil: fsdecode the bytes group name before passing to os
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Wed Jan 16 12:21:55 EST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa6b98c95bcf0: shallowutil: fsdecode the bytes group name before passing to os (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5608?vs=13268&id=13288
REVISION DETAIL
https://phab.mercurial-scm.org/D5608
AFFECTED FILES
hgext/remotefilelog/shallowutil.py
CHANGE DETAILS
diff --git a/hgext/remotefilelog/shallowutil.py b/hgext/remotefilelog/shallowutil.py
--- a/hgext/remotefilelog/shallowutil.py
+++ b/hgext/remotefilelog/shallowutil.py
@@ -420,7 +420,7 @@
def getgid(groupname):
try:
- gid = grp.getgrnam(groupname).gr_gid
+ gid = grp.getgrnam(pycompat.fsdecode(groupname)).gr_gid
return gid
except KeyError:
return None
To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list