# HG changeset patch # User Thomas Arendsen Hein # Date 1319457299 -7200 # Node ID b78cce2b1430ef3ccc7dc02a137c149b41e49ebe # Parent 89f7a7e343c91a1a1da24eeaac3ec17ba7f8b2f2 keyword: use util.realpath instead of os.path.realpath This makes test-keyword.t pass on Python 2.4.1 (e.g. Debian sarge) [ original upstream message ] diff -r 89f7a7e343c9 -r b78cce2b1430 hgkw/keyword.py --- a/hgkw/keyword.py Sat Oct 22 15:45:19 2011 +0100 +++ b/hgkw/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