Mercurial > hg-stable
changeset 4735:8d4fac0a9df7
Make hg glog abort if unused arguments are given.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Thu, 28 Jun 2007 16:18:09 +0200 |
parents | 9ac493f12901 |
children | 04b2c1e27c26 |
files | hgext/graphlog.py tests/test-glog tests/test-glog.out |
diffstat | 3 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/graphlog.py Thu Jun 28 16:03:45 2007 +0200 +++ b/hgext/graphlog.py Thu Jun 28 16:18:09 2007 +0200 @@ -141,7 +141,7 @@ 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
--- a/tests/test-glog Thu Jun 28 16:03:45 2007 +0200 +++ b/tests/test-glog Thu Jun 28 16:18:09 2007 +0200 @@ -138,3 +138,6 @@ echo % glog hg glog + +echo % unused arguments +hg glog -q foo || echo failed
--- a/tests/test-glog.out Thu Jun 28 16:03:45 2007 +0200 +++ b/tests/test-glog.out Thu Jun 28 16:18:09 2007 +0200 @@ -307,3 +307,9 @@ 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