Use Mercurial's getcwd()
authorChristian Ebert <blacktrash@gmx.net>
Thu, 20 Sep 2007 19:26:20 +0100
changeset 244 e449107a0501
parent 243 bbd5af3ec247
child 245 b0316be232da
Use Mercurial's getcwd()
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: