Problem with: 208fc9ad6a48 "alias: only allow global options before .."

David Harrigan dharrigan at gmail.com
Wed Sep 29 15:35:11 CDT 2010


Hi,

I would like to second this - just hit the bug trying to use one of
Steve's templates :-)

[alias]
sglog = glog -v --style
$HOME/development/hg/mercurial-cli-templates/map-cmdline.sglog

With tip, I now get this:

$ hg sglog
hg sglog: invalid arguments
hg sglog [OPTION]... [FILE]

alias for: hg glog -v --style
$HOME/development/hg/mercurial-cli-templates/map-cmdline.sglog

-=david=-

On 29 September 2010 19:56, Adrian Buehlmann <adrian at cadifra.com> wrote:
> I found a problem with
>
>  changeset:   12536:208fc9ad6a48
>  user:        Steve Losh <steve at stevelosh.com>
>  date:        Tue Aug 24 18:25:33 2010 -0400
>  summary:     alias: only allow global options before a shell alias, pass later ones through
>
> If I write the following
>
>  $ cat >> $HGRCPATH <<EOF
>  > [extensions]
>  > graphlog=
>  >
>  > [alias]
>  > tglog = glog
>  > EOF
>
>  $ hg init a
>  $ cd a
>  $ hg tglog
>
> into a new file tests/test-mini.t and run that test with
>
>   python run-tests.py test-mini.t
>
> then that test fails.
>
> Before 208fc9ad6a48, that same test passes.
>
> I've stumbled across this because I've used that pattern in my unified rebase
> tests (not yet pushed or posted), which suddenly stopped working.
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
>



-- 
I prefer encrypted and signed messages. KeyID: B20A22F9
Fingerprint: 110A F423 3647 54E2 880F ADAD 1C52 85BF B20A 22F9


More information about the Mercurial-devel mailing list