Show More
@@ -685,16 +685,17 b' def runcommand(lui, repo, cmd, fullargs,' | |||
|
685 | 685 | result=ret, pats=cmdpats, opts=cmdoptions) |
|
686 | 686 | return ret |
|
687 | 687 | |
|
688 | def _getlocal(ui, rpath): | |
|
688 | def _getlocal(ui, rpath, wd=None): | |
|
689 | 689 | """Return (path, local ui object) for the given target path. |
|
690 | 690 | |
|
691 | 691 | Takes paths in [cwd]/.hg/hgrc into account." |
|
692 | 692 | """ |
|
693 | try: | |
|
694 | wd = os.getcwd() | |
|
695 | except OSError as e: | |
|
696 | raise error.Abort(_("error getting current working directory: %s") % | |
|
697 | e.strerror) | |
|
693 | if wd is None: | |
|
694 | try: | |
|
695 | wd = os.getcwd() | |
|
696 | except OSError as e: | |
|
697 | raise error.Abort(_("error getting current working directory: %s") % | |
|
698 | e.strerror) | |
|
698 | 699 | path = cmdutil.findrepo(wd) or "" |
|
699 | 700 | if not path: |
|
700 | 701 | lui = ui |
General Comments 0
You need to be logged in to leave comments.
Login now