Make hg glog abort if unused arguments are given.

This commit is contained in:
Thomas Arendsen Hein 2007-06-28 16:18:09 +02:00
parent 4784c1900b
commit d17146e533
3 changed files with 10 additions and 1 deletions

View File

@ -141,7 +141,7 @@ def get_revs(repo, rev_opt):
else:
return (repo.changelog.count() - 1, 0)
def graphlog(ui, repo, *args, **opts):
def graphlog(ui, repo, **opts):
"""show revision history alongside an ASCII revision graph
Print a revision history alongside a revision graph drawn with

View File

@ -138,3 +138,6 @@ hg glog -q
echo % glog
hg glog
echo % unused arguments
hg glog -q foo || echo failed

View File

@ -307,3 +307,9 @@ o changeset: 0:7aa22e58e8c1
date: Thu Jan 01 00:00:00 1970 +0000
summary: (0) root
% unused arguments
hg glog: invalid arguments
hg glog [OPTION]...
show revision history alongside an ASCII revision graph
failed