Mercurial > hg
comparison hgext/keyword.py @ 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 | 212bfb5c50e1 |
comparison
equal
deleted
inserted
replaced
6059:d74c5e99d05b | 6060:e4d74100d41b |
---|---|
385 modified, added, removed, deleted, unknown, ignored, clean = status | 385 modified, added, removed, deleted, unknown, ignored, clean = status |
386 files = modified + added + clean | 386 files = modified + added + clean |
387 if opts.get('untracked'): | 387 if opts.get('untracked'): |
388 files += unknown | 388 files += unknown |
389 files.sort() | 389 files.sort() |
390 kwfiles = [f for f in files if _iskwfile(f, repo._link)] | 390 wctx = repo.workingctx() |
391 islink = lambda p: 'l' in wctx.fileflags(p) | |
392 kwfiles = [f for f in files if _iskwfile(f, islink)] | |
391 cwd = pats and repo.getcwd() or '' | 393 cwd = pats and repo.getcwd() or '' |
392 kwfstats = not opts.get('ignore') and (('K', kwfiles),) or () | 394 kwfstats = not opts.get('ignore') and (('K', kwfiles),) or () |
393 if opts.get('all') or opts.get('ignore'): | 395 if opts.get('all') or opts.get('ignore'): |
394 kwfstats += (('I', [f for f in files if f not in kwfiles]),) | 396 kwfstats += (('I', [f for f in files if f not in kwfiles]),) |
395 for char, filenames in kwfstats: | 397 for char, filenames in kwfstats: |