Problem with aliases in hg 1.3
Ted Pavlic
ted at tedpavlic.com
Wed Jul 15 13:09:08 UTC 2009
All of what follows used to work fine, and so I suspect a regression in
hg 1.3. I'm running hg bbc78cb1bf15 from the hg repo.
Short story: When issuing fetch/pull commands from aliases, I get
"unknown exception encountered" errors. When issuing the same commands
directly, they work fine.
In my repo's .hg/hgrc file, I have:
[paths]
template = ../osu_ece_course_template/
[alias]
pulltemp = pull template
fetchtemp = fetch --switch-parent template -m "Automated merge from
course template"
If I issue "hg pulltemp" or "hg fetchtemp", I get errors. In the latter
case (hg fetchtemp), I get this traceback:
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial at selenic.com
** Mercurial Distributed SCM (version bbc78cb1bf15)
** Extensions loaded: alias, extdiff, fetch, parentrevspec, patchbomb,
graphlog, hgk, mq, convert, color, pager, rebase, record, crecord
Traceback (most recent call last):
File "/usr/local/bin/hg", line 27, in <module>
mercurial.dispatch.run()
File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py",
line 16, in run
sys.exit(dispatch(sys.argv[1:]))
File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py",
line 27, in dispatch
return _runcatch(u, args)
File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py",
line 43, in _runcatch
return _dispatch(ui, args)
File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py",
line 449, in _dispatch
return runcommand(lui, repo, cmd, fullargs, ui, options, d)
File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py",
line 317, in runcommand
ret = _runcommand(ui, options, cmd, d)
File
"/usr/local/lib/python2.5/site-packages/mercurial/extensions.py", line
115, in wrap
return wrapper(origfn, *args, **kwargs)
File "/usr/local/lib/python2.5/site-packages/hgext/pager.py", line
60, in pagecmd
return orig(ui, options, cmd, cmdfunc)
File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py",
line 501, in _runcommand
return checkargs()
File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py",
line 454, in checkargs
return cmdfunc()
File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py",
line 448, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File "/usr/local/lib/python2.5/site-packages/mercurial/util.py", line
402, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.5/site-packages/mercurial/dispatch.py",
line 219, in __call__
return self.fn(ui, *args, **opts)
TypeError: fetch() takes at most 3 non-keyword arguments (4 given)
Best --
Ted
--
Ted Pavlic <ted at tedpavlic.com>
Please visit my 2009 d'Feet ALS walk page:
http://web.alsa.org/goto/tedp
My family appreciates your support in the fight to defeat ALS.
More information about the Mercurial
mailing list