# HG changeset patch # User Christian Ebert # Date 1192815461 -7200 # Node ID 2386cdd2ef2ebd57e196053ff3e23b91e0284d7e # Parent c6314b110e67542cb446c4d7c8299defd6ae671d Obtaining cwd redundant in pathto wrapper diff -r c6314b110e67 -r 2386cdd2ef2e 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