use repo.changectx(None) to get a workingctx stable
authorMatt Mackall <mpm@selenic.com>
Thu, 26 Jun 2008 13:46:29 -0500
branchstable
changeset 468 235800d4708a
parent 467 1dfcc2e2cdb3
child 469 8b8a196602ac
use repo.changectx(None) to get a workingctx [ original upstream description]
hgkw/keyword.py
--- a/hgkw/keyword.py	Wed Jun 25 17:35:20 2008 -0500
+++ b/hgkw/keyword.py	Thu Jun 26 13:46:29 2008 -0500
@@ -388,7 +388,7 @@
     if opts.get('untracked'):
         files += unknown
     files.sort()
-    wctx = repo.workingctx()
+    wctx = repo.changectx(None)
     islink = lambda p: 'l' in wctx.fileflags(p)
     kwfiles = [f for f in files if kwt.iskwfile(f, islink)]
     cwd = pats and repo.getcwd() or ''