Problem with aliases in hg 1.3

Greg Ward greg-hg at gerg.ca
Wed Jul 15 08:53:21 CDT 2009


On Wed, Jul 15, 2009 at 9:09 AM, Ted Pavlic<ted at tedpavlic.com> wrote:
> 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.

Obvious question: if you type out the whole command, rather than using
your alias, does it work then?

Less obvious question: did you used to have 1.2 or earlier installed
in /usr/local/lib/python2.5/site-packages?  The alias extension has
moved into core, so if you still have an old hgext/alias.py *and*
you've configured that extension, the old extension might be
overriding the new core implementation.

Try running out of the source dir ("make local" and then type out the
whole path to that hg script) -- that should avoid the libs in
/usr/local/lib/python2.5/site-packages.  If that works, blow away
/usr/local/lib/python2.5/site-packages/{mercurial,hgext} and
reinstall.

If *that* works, this probably deserves a mention in the 1.3 release
notes.  (If it's not already there.)

Greg


More information about the Mercurial mailing list