##// END OF EJS Templates
keyword: fix symlink detection under Windows
Patrick Mezard -
r6060:e4d74100 default
parent child Browse files
Show More
@@ -387,7 +387,9 b' def files(ui, repo, *pats, **opts):'
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'):
General Comments 0
You need to be logged in to leave comments. Login now