[issue3331] Too few arguments to an alias causes a stacktrace

0 views
Skip to first unread message

Mike Williams

unread,
Mar 22, 2012, 10:03:21 AM3/22/12
to mercuri...@selenic.com

New submission from Mike Williams <ob...@eandem.co.uk>:

Missing an argument to an alias using positional arguments throws a stacktrace.

F:\temp\branching> hg --config alias.bob="log --style $1 --rev $2" bob compact
** unknown exception encountered, please report by visiting
** http://mercurial.selenic.com/wiki/BugTracker
** Python 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)]
** Mercurial Distributed SCM (version 2.1.1)
** Extensions loaded:
Traceback (most recent call last):
File "hg", line 42, in <module>
File "mercurial\dispatch.pyo", line 27, in run
File "mercurial\dispatch.pyo", line 64, in dispatch
File "mercurial\dispatch.pyo", line 87, in _runcatch
File "mercurial\dispatch.pyo", line 578, in _dispatch
File "mercurial\dispatch.pyo", line 386, in _parse
File "mercurial\dispatch.pyo", line 229, in aliasargs
File "re.pyo", line 151, in sub
File "mercurial\dispatch.pyo", line 228, in replacer
IndexError: list index out of range

----------
messages: 19436
nosy: mikew
priority: bug
status: unread
title: Too few arguments to an alias causes a stacktrace

____________________________________________________
Mercurial issue tracker <bu...@mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3331>
____________________________________________________
_______________________________________________
Mercurial-devel mailing list
Mercuri...@selenic.com
http://selenic.com/mailman/listinfo/mercurial-devel

Reply all
Reply to author
Forward
0 new messages