##// END OF EJS Templates
Make hg glog abort if unused arguments are given.
Thomas Arendsen Hein -
r4735:8d4fac0a default
parent child Browse files
Show More
@@ -141,7 +141,7 b' def get_revs(repo, rev_opt):'
141 else:
141 else:
142 return (repo.changelog.count() - 1, 0)
142 return (repo.changelog.count() - 1, 0)
143
143
144 def graphlog(ui, repo, *args, **opts):
144 def graphlog(ui, repo, **opts):
145 """show revision history alongside an ASCII revision graph
145 """show revision history alongside an ASCII revision graph
146
146
147 Print a revision history alongside a revision graph drawn with
147 Print a revision history alongside a revision graph drawn with
@@ -138,3 +138,6 b' hg glog -q'
138
138
139 echo % glog
139 echo % glog
140 hg glog
140 hg glog
141
142 echo % unused arguments
143 hg glog -q foo || echo failed
@@ -307,3 +307,9 b' o changeset: 0:7aa22e58e8c1'
307 date: Thu Jan 01 00:00:00 1970 +0000
307 date: Thu Jan 01 00:00:00 1970 +0000
308 summary: (0) root
308 summary: (0) root
309
309
310 % unused arguments
311 hg glog: invalid arguments
312 hg glog [OPTION]...
313
314 show revision history alongside an ASCII revision graph
315 failed
General Comments 0
You need to be logged in to leave comments. Login now