hgkw/keyword.py
changeset 282 2386cdd2ef2e
parent 280 2088e409d360
child 283 071bfbd482b4
equal deleted inserted replaced
281:c6314b110e67 282:2386cdd2ef2e
    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