# HG changeset patch # User Patrick Mezard # Date 1202584626 -3600 # Node ID d3f114c111ffceb1317b97f932c16888a5fd84a1 # Parent ee07603fab121f9e57331e739f2a8979c0f0e17e keyword: fix symlink detection under Windows [ original upstream description ] diff -r ee07603fab12 -r d3f114c111ff hgkw/keyword.py --- a/hgkw/keyword.py Sat Feb 09 19:40:30 2008 +0100 +++ b/hgkw/keyword.py Sat Feb 09 20:17:06 2008 +0100 @@ -389,7 +389,9 @@ if opts.get('untracked'): files += unknown files.sort() - kwfiles = [f for f in files if _iskwfile(f, repo._link)] + wctx = repo.workingctx() + islink = lambda p: 'l' in wctx.fileflags(p) + kwfiles = [f for f in files if _iskwfile(f, islink)] cwd = pats and repo.getcwd() or '' kwfstats = not opts.get('ignore') and (('K', kwfiles),) or () if opts.get('all') or opts.get('ignore'):