problems with hg view

Alexis S. L. Carvalho alexis at cecm.usp.br
Wed Mar 7 17:33:44 UTC 2007


Thus spake Michael A Pernice:
> I just installed mercurial v0.9.1 on a system running SUSE v10.1, and 
> after cloning a repository I encountered a problem using hg view. This is 
> my very first use of mercurial, and perhaps something is not configured 
> right.  However the install was clean and easy but the error suggests the 
> install may not be quite correct.  Anyway here's the traceback:

This does look like an instalation problem...

> File /usr/bin/hg, line 12, in ? commands.run
> File /usr/lib64/python2.4/site-packages/mercurial/commands.py, line 3266 
> in run sys.exit(dispatch(sys.argv[1:]))
> File  /usr/lib64/python2.4/site-packages/mercurial/commands.py line 3465 
> in dispatch return d()
> File  /usr/lib64/python2.4/site-packages/mercurial/commands.py line 3424 
> in <lambda> d = lambda: func(u, rep, *args, **cmdoptions)
> File  /usr/lib64/python2.4/site-packages/mercurial/hgk.py line 314 in 
> revlist revtree(copy, repo, full. opts['max_count'], opt['parents'])
> File  /usr/lib64/python2.4/site-packages/mercurial/hgk.py line 285 in 

The hgk.py file has never been (officially) installed in the mercurial
directory

> revtree catcommit(repo, n, ' ', changes)
> File  /usr/lib64/python2.4/site-packages/mercurial/hgk.py line 133 in 
> catcommit dat_ar = changes[2].split(' ')
> AttributeError:  'tuple' object has no attribute 'split'

and AFAICS this line existed in hgk.py only between 19 Sep 2005 and 23
Sep 2005 - 0.9.1 was released on July 2006.

I don't really follow SuSE, but you can try to install a more recent
version either with a binary package[1] or directly from source[2].

Alexis

[1] - http://www.selenic.com/mercurial/wiki/index.cgi/BinaryPackages
[2] - http://www.selenic.com/mercurial/wiki/index.cgi/UnixInstall



More information about the Mercurial mailing list