hgkw/keyword.py
changeset 997 5c25b505ffc1
parent 995 b78cce2b1430
child 998 cc54b798aca4
--- a/hgkw/keyword.py	Fri Oct 21 12:07:27 2011 +0100
+++ b/hgkw/keyword.py	Mon Oct 24 17:02:10 2011 +0100
@@ -86,7 +86,7 @@
 from mercurial import scmutil
 from mercurial.hgweb import webcommands
 from mercurial.i18n import _
-import os, re, shutil, tempfile
+import 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,
-                                           os.path.realpath(source))
+                                           util.realpath(source))
             return kwt.match(source)
 
         candidates = [f for f in repo.dirstate.copies() if