simplify flag handling stable
authorMatt Mackall <mpm@selenic.com>
Thu, 26 Jun 2008 13:46:34 -0500
branchstable
changeset 469 8b8a196602ac
parent 468 235800d4708a
child 470 2c530e5df1d4
simplify flag handling add _checklink var to dirstate introduce dirstate.flagfunc switch users of util.execfunc/linkfunc to flagfunc change manifestdict.set to take a flags string change ctx.fileflags to ctx.flags change gitmode func to a dict remove util.execfunc/linkfunc [ original upstream description]
hgkw/keyword.py
--- a/hgkw/keyword.py	Thu Jun 26 13:46:29 2008 -0500
+++ b/hgkw/keyword.py	Thu Jun 26 13:46:34 2008 -0500
@@ -389,7 +389,7 @@
         files += unknown
     files.sort()
     wctx = repo.changectx(None)
-    islink = lambda p: 'l' in wctx.fileflags(p)
+    islink = lambda p: 'l' in wctx.flags(p)
     kwfiles = [f for f in files if kwt.iskwfile(f, islink)]
     cwd = pats and repo.getcwd() or ''
     kwfstats = not opts.get('ignore') and (('K', kwfiles),) or ()