To reproduce: $ cat >>~/.hgrc <<EOF > [alias] > whoami = showconfig ui.username > EOF $ cd / # I'm assuming that /.hg doesn't exist $ hg showconfig ui.username A. S. Budden <email@email.com> $ hg whoami abort: no repository found in '/' (.hg not found)! More information (from Matt Mackall): > Any idea what's causing this? Yep. Each command has a notion of whether or not it requires a repo to operate on. This is inherited by aliases. But a smaller set of commands optionally work with a repo (like showconfig), and this property is not inherited. Please open a bug for this.
Fix submitted here: http://selenic.com/pipermail/mercurial-devel/2012-May/039739.html Thank you for the report.
--- Bug imported by bugzilla@serpentine.com 2012-05-12 09:28 EDT --- This bug was previously known as _bug_ 3298 at http://mercurial.selenic.com/bts/issue3298