hgview crashes if repository is empty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hgview (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: hgview
1. On Ubuntu 10.10 I have installed Mercurial and hgview:
sudo apt-get install mercurial
sudo apt-get install hgview
2. Then I have created repository:
hg init main
Note: main is the name of newly created repository.
3. Change directory to newly created directory.
cd main
4. Run hgview
hgview
Program crashed with the following error message in terminal:
===========
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
w = model.maxWidthV
File "/usr/lib/
return _maxwidth[
File "/usr/lib/
key=lambda x: len(x))[-1],
IndexError: list index out of range
===========
It looks like if repository does not have at least one file and hgview is run, then hgview crashes.
Crash of the program should never happen. It would be nice if hgview would just start with empty windows.
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: hgview 1.1.3-1
ProcVersionSign
Uname: Linux 2.6.35-22-generic i686
Architecture: i386
Date: Sun Oct 17 16:03:52 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
PackageArchitec
ProcEnviron:
LANGUAGE=en_US:en
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: hgview
But is opened in upstream for 7 months at: http:// www.logilab. org/ticket/ 20996