Mercurial > public > mercurial-scm > hg
diff mercurial/dispatch.py @ 11681:c5e555e064d0
Merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 25 Jul 2010 21:20:05 -0500 |
parents | 4d9b4725acac e4357c214bf1 |
children | ee8f36a6c766 |
line wrap: on
line diff
--- a/mercurial/dispatch.py Tue Jul 20 15:49:28 2010 +0200 +++ b/mercurial/dispatch.py Sun Jul 25 21:20:05 2010 -0500 @@ -262,7 +262,7 @@ if self.shadows: ui.debug("alias '%s' shadows command\n" % self.name) - return self.fn(ui, *args, **opts) + return util.checksignature(self.fn)(ui, *args, **opts) def addaliases(ui, cmdtable): # aliases are processed after extensions have been loaded, so they @@ -380,7 +380,12 @@ os.chdir(cwd[-1]) # read the local repository .hgrc into a local ui object - path = cmdutil.findrepo(os.getcwd()) or "" + try: + wd = os.getcwd() + except OSError, e: + raise util.Abort(_("error getting current working directory: %s") % + e.strerror) + path = cmdutil.findrepo(wd) or "" if not path: lui = ui else: