diff -r dadecc4f3341 -r cc54b798aca4 hgkw/keyword.py --- a/hgkw/keyword.py Sat Oct 22 23:21:38 2011 +0200 +++ b/hgkw/keyword.py Mon Nov 07 13:48:11 2011 +0000 @@ -86,7 +86,7 @@ from mercurial import scmutil from mercurial.hgweb import webcommands from mercurial.i18n import _ -import re, shutil, tempfile +import os, re, shutil, tempfile commands.optionalrepo += ' kwdemo' @@ -647,7 +647,7 @@ source = repo.dirstate.copied(dest) if 'l' in wctx.flags(source): source = scmutil.canonpath(repo.root, cwd, - util.realpath(source)) + os.path.realpath(source)) return kwt.match(source) candidates = [f for f in repo.dirstate.copies() if