--- a/mercurial/commands.py Mon Sep 24 19:00:11 2007 -0300
+++ b/mercurial/commands.py Mon Sep 24 19:00:11 2007 -0300
@@ -1489,6 +1489,10 @@
name for non-default branches.
"""
+ if not repo and not source:
+ raise util.Abort(_("There is no Mercurial repository here "
+ "(.hg not found)"))
+
hexfunc = ui.debugflag and hex or short
default = not (num or id or branch or tags)
output = []
@@ -3155,7 +3159,7 @@
norepo = ("clone init version help debugancestor debugcomplete debugdata"
" debugindex debugindexdot debugdate debuginstall")
-optionalrepo = ("paths serve showconfig")
+optionalrepo = ("identify paths serve showconfig")
def dispatch(args):
try: