Mercurial > hg
comparison tests/test-acl.t @ 37120:a8a902d7176e
procutil: bulk-replace function calls to point to new module
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 24 Mar 2018 15:10:51 +0900 |
parents | 2090044a288d |
children | 6beb8347b709 |
comparison
equal
deleted
inserted
replaced
37119:d4a2e0d5d042 | 37120:a8a902d7176e |
---|---|
21 > echo | 21 > echo |
22 > } | 22 > } |
23 | 23 |
24 > cat > posixgetuser.py <<'EOF' | 24 > cat > posixgetuser.py <<'EOF' |
25 > import getpass | 25 > import getpass |
26 > from mercurial import pycompat, util | 26 > from mercurial import pycompat |
27 > from mercurial.utils import procutil | |
27 > def posixgetuser(): | 28 > def posixgetuser(): |
28 > return pycompat.fsencode(getpass.getuser()) | 29 > return pycompat.fsencode(getpass.getuser()) |
29 > if not pycompat.isposix: | 30 > if not pycompat.isposix: |
30 > util.getuser = posixgetuser # forcibly trust $LOGNAME | 31 > procutil.getuser = posixgetuser # forcibly trust $LOGNAME |
31 > EOF | 32 > EOF |
32 | 33 |
33 > init_config() | 34 > init_config() |
34 > { | 35 > { |
35 > cat > fakegroups.py <<EOF | 36 > cat > fakegroups.py <<EOF |