# HG changeset patch # User Christian Ebert # Date 1190312780 -3600 # Node ID e449107a050101ae839369484f9f6682057f4298 # Parent bbd5af3ec247e67216e009b57a2d893f0e55d0ce Use Mercurial's getcwd() diff -r bbd5af3ec247 -r e449107a0501 hgkw/keyword.py --- a/hgkw/keyword.py Tue Sep 18 00:08:23 2007 +0100 +++ b/hgkw/keyword.py Thu Sep 20 19:26:20 2007 +0100 @@ -83,7 +83,7 @@ from mercurial import commands, cmdutil, context, fancyopts, filelog from mercurial import localrepo, templater, util, hg from mercurial.i18n import gettext as _ -import getopt, os, re, shutil, sys, tempfile, time +import getopt, re, shutil, sys, tempfile, time # backwards compatibility hacks @@ -335,7 +335,7 @@ return man = ctx.manifest() if files: - cwd = os.getcwd() + cwd = repo.getcwd() files = [util.canonpath(repo.root, cwd, f) for f in files] files = _weedcandidates(man, kwfmatcher, files) if not files: