Show More
@@ -3,10 +3,10 b'' | |||
|
3 | 3 | $ cat > nlinks.py <<EOF |
|
4 | 4 | > from __future__ import print_function |
|
5 | 5 | > import sys |
|
6 | > from mercurial import util | |
|
6 | > from mercurial import pycompat, util | |
|
7 | 7 | > for f in sorted(sys.stdin.readlines()): |
|
8 | 8 | > f = f[:-1] |
|
9 | > print(util.nlinks(f), f) | |
|
9 | > print(util.nlinks(pycompat.fsencode(f)), f) | |
|
10 | 10 | > EOF |
|
11 | 11 | |
|
12 | 12 | $ nlinksdir() |
General Comments 0
You need to be logged in to leave comments.
Login now