Mercurial > hg
changeset 6060:e4d74100d41b
keyword: fix symlink detection under Windows
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sat, 09 Feb 2008 20:17:06 +0100 |
parents | d74c5e99d05b |
children | de08788511d7 |
files | hgext/keyword.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/keyword.py Sat Feb 09 19:40:30 2008 +0100 +++ b/hgext/keyword.py Sat Feb 09 20:17:06 2008 +0100 @@ -387,7 +387,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'):