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
Sun Oct 28 04:20:13 CDT 2007


Hi all

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

At the moment, the -R option seems to be silently ignored. And putting
it first yields

*** [alias] qlog: command -R is unknown

This is with

$ hg version
Mercurial Distributed SCM (version 0.9.4)

If I do this with a crew build, I get

** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 5d8f5ad45c12)
Traceback (most recent call last):
  File "./hg", line 14, in <module>
    mercurial.dispatch.run()
  File "/home/peo/dev/hg/dev/mercurial/dispatch.py", line 20, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/home/peo/dev/hg/dev/mercurial/dispatch.py", line 29, in dispatch
    return _runcatch(u, args)
  File "/home/peo/dev/hg/dev/mercurial/dispatch.py", line 45, in _runcatch
    return _dispatch(ui, args)
  File "/home/peo/dev/hg/dev/mercurial/dispatch.py", line 289, in _dispatch
    cmd, func, args, options, cmdoptions = _parse(lui, args)
  File "/home/peo/dev/hg/dev/mercurial/dispatch.py", line 176, in _parse
    c = list(i[1])
  File "/home/peo/local/lib/hgext/alias.py", line 37, in __getitem__
    self._resolve()
  File "/home/peo/local/lib/hgext/alias.py", line 50, in _resolve
    self._cmd = findcmd(self._ui, self._target)[1]
TypeError: findcmd() takes exactly 3 arguments (2 given)


Thanks,
-peo


More information about the Mercurial mailing list