Mercurial > public > mercurial-scm > hg-stable
diff hgext/keyword.py @ 15387:87248de09135 stable
keyword: backout realpath change (issue3071)
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 30 Oct 2011 12:10:11 -0500 |
parents | 42630f54e513 |
children | 07893690c435 |
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