How to define aliases for -R .hg/patches versions of commands? (And a crew bug with alias ext.)

Peter Arrenbrecht peter.arrenbrecht at gmail.com
Tue Oct 30 02:04:05 CDT 2007


On 10/29/07, Christian Ebert <blacktrash at gmx.net> wrote:
> * Peter Arrenbrecht on Sunday, October 28, 2007 at 10:20:13 +0100
> > Does anyone know how I can, in .hgrc, do something like
> >
> > [alias]
> > qlog = log -R .hg/patches
> > qpull = pull -R .hg/patches
> > qbundle = bundle -R .hg/patches
>
> While it doesn't help with the actual alias extension problem,
> have you considered using a more flexible /shell/ alias instead,
> as mentioned at
> <http://www.selenic.com/mercurial/wiki/index.cgi/MqTutorial#head-6fa48f05dbb98cdac416fea274b711ebcf4895dd>?
>
> alias mq='hg -R `hg root`/.hg/patches'
>
> This you could run like hg anywhere in your repo, seems more
> flexible to me.

Excellent. Thanks.
-peo


More information about the Mercurial mailing list