Obtaining cwd redundant in pathto wrapper
authorChristian Ebert <blacktrash@gmx.net>
Fri, 19 Oct 2007 19:37:41 +0200
changeset 282 2386cdd2ef2e
parent 281 c6314b110e67
child 283 071bfbd482b4
Obtaining cwd redundant in pathto wrapper
hgkw/keyword.py
--- a/hgkw/keyword.py	Fri Oct 19 16:28:56 2007 +0200
+++ b/hgkw/keyword.py	Fri Oct 19 19:37:41 2007 +0200
@@ -101,8 +101,6 @@
 def _pathto(repo, f, cwd=None):
     '''kwfiles behaves similar to status, using pathto since 78b6add1f966.'''
     try:
-        if cwd is None:
-            cwd = repo.getcwd()
         return repo.pathto(f, cwd)
     except AttributeError:
         return f