##// END OF EJS Templates
dispatch: add wd parameter to _getlocal...
Jun Wu -
r28263:59509c67 default
parent child Browse files
Show More
@@ -685,11 +685,12 b' def runcommand(lui, repo, cmd, fullargs,'
685 result=ret, pats=cmdpats, opts=cmdoptions)
685 result=ret, pats=cmdpats, opts=cmdoptions)
686 return ret
686 return ret
687
687
688 def _getlocal(ui, rpath):
688 def _getlocal(ui, rpath, wd=None):
689 """Return (path, local ui object) for the given target path.
689 """Return (path, local ui object) for the given target path.
690
690
691 Takes paths in [cwd]/.hg/hgrc into account."
691 Takes paths in [cwd]/.hg/hgrc into account."
692 """
692 """
693 if wd is None:
693 try:
694 try:
694 wd = os.getcwd()
695 wd = os.getcwd()
695 except OSError as e:
696 except OSError as e:
General Comments 0
You need to be logged in to leave comments. Login now