Mercurial > hg-stable
changeset 15354:42630f54e513 stable
keyword: use util.realpath instead of os.path.realpath
This makes test-keyword.t pass on Python 2.4.1 (e.g. Debian sarge)
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 24 Oct 2011 13:54:59 +0200 |
parents | ab600a25dfc0 |
children | dbdb777502dc |
files | hgext/keyword.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/keyword.py Mon Oct 24 13:32:23 2011 +0200 +++ b/hgext/keyword.py Mon Oct 24 13:54:59 2011 +0200 @@ -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