confusing pull -u behavior

Marijn Vriens marijn at metronomo.cl
Fri Mar 13 04:32:28 CDT 2009


On Fri, Mar 13, 2009 at 3:31 AM, Ted Pavlic <ted at tedpavlic.com> wrote:

> > But ... why should that be built in? A better solution is to use the
> > shell to combine Mercurial commands. In this example "hg pull;hg up" is
> > what is meant, so why not just use that instead?
>
> Perhaps...
>
>        hg pull && hg up
>
> would be a better solution?
>
> Right now, Mercurial supports aliases (via the alias plugin included
> with hg). Wouldn't it be nice if the alias plugin allowed you to join
> sequences of commands? Something like...
>
>        [alias]
>        pullup = pull && up
>
> ??



I like and use [alias] quite a bit, but aren't these more complex structures
better left to the user's command shell?

It's tivial to make "hgpullup" as a custom function that does this. Even in
Windows you can write a .bat....

Regards,
       Marijn.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20090313/cd50b07b/attachment.htm 


More information about the Mercurial mailing list