# HG changeset patch # User Matt Mackall # Date 1421531636 28800 # Node ID 7d0aa6269ece303adeb0e353c3256df5b8444643 # Parent 593a5cd709a22d52dd2cf67f70534a5b1b9305cc tests: teach f not to report symlink mode bits They're not meaningful or portable diff -r 593a5cd709a2 -r 7d0aa6269ece tests/f --- a/tests/f Sat Jan 17 13:53:16 2015 -0800 +++ b/tests/f Sat Jan 17 13:53:56 2015 -0800 @@ -63,7 +63,7 @@ stat = os.lstat(f) if opts.size and not isdir: facts.append('size=%s' % stat.st_size) - if opts.mode: + if opts.mode and not islink: facts.append('mode=%o' % (stat.st_mode & 0777)) if opts.links: facts.append('links=%s' % stat.st_nlink) diff -r 593a5cd709a2 -r 7d0aa6269ece tests/test-tools.t --- a/tests/test-tools.t Sat Jan 17 13:53:16 2015 -0800 +++ b/tests/test-tools.t Sat Jan 17 13:53:56 2015 -0800 @@ -69,7 +69,7 @@ ./bar: file, size=21, mode=755, md5=3b03, sha1=612c ./baz: file, size=21, mode=755, md5=3b03, sha1=612c ./foo: file, size=4, mode=644, md5=d3b0, sha1=f1d2 - ./l: link, size=5, mode=777, md5=2faa, sha1=af93 + ./l: link, size=5, md5=2faa, sha1=af93 #endif $ f --quiet bar -DL 3