##// END OF EJS Templates
unknown command fixups...
mpm@selenic.com -
r268:1634a7ea default
parent child Browse files
Show More
@@ -77,7 +77,7 b' def help(ui, cmd=None):'
77 ui.write("%s\n\n" % i[2])
77 ui.write("%s\n\n" % i[2])
78 ui.write(i[0].__doc__, "\n")
78 ui.write(i[0].__doc__, "\n")
79 except UnknownCommand:
79 except UnknownCommand:
80 ui.warn("unknown command %s" % cmd)
80 ui.warn("hg: unknown command %s\n" % cmd)
81 sys.exit(0)
81 sys.exit(0)
82 else:
82 else:
83 ui.status('hg commands:\n\n')
83 ui.status('hg commands:\n\n')
@@ -568,7 +568,7 b' def dispatch(args):'
568 try:
568 try:
569 i = find(cmd)
569 i = find(cmd)
570 except UnknownCommand:
570 except UnknownCommand:
571 u.warn("unknown command '%s'\n" % cmd)
571 u.warn("hg: unknown command '%s'\n" % cmd)
572 help(u)
572 help(u)
573 sys.exit(1)
573 sys.exit(1)
574
574
General Comments 0
You need to be logged in to leave comments. Login now