equal
deleted
inserted
replaced
99 _parse = commands.parse |
99 _parse = commands.parse |
100 |
100 |
101 def _pathto(repo, f, cwd=None): |
101 def _pathto(repo, f, cwd=None): |
102 '''kwfiles behaves similar to status, using pathto since 78b6add1f966.''' |
102 '''kwfiles behaves similar to status, using pathto since 78b6add1f966.''' |
103 try: |
103 try: |
104 if cwd is None: |
|
105 cwd = repo.getcwd() |
|
106 return repo.pathto(f, cwd) |
104 return repo.pathto(f, cwd) |
107 except AttributeError: |
105 except AttributeError: |
108 return f |
106 return f |
109 |
107 |
110 # commands.parse/cmdutil.parse returned nothing for |
108 # commands.parse/cmdutil.parse returned nothing for |