changeset 15387:87248de09135 stable

keyword: backout realpath change (issue3071)
author Matt Mackall <mpm@selenic.com>
date Sun, 30 Oct 2011 12:10:11 -0500
parents 6051d8e7e133
children eb6c0d47c3d5 d2bd51fdd4b7
files hgext/keyword.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/keyword.py	Sun Oct 30 12:10:09 2011 -0500
+++ b/hgext/keyword.py	Sun Oct 30 12:10:11 2011 -0500
@@ -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