Open Bug 1216778 Opened 9 years ago

Unknown tree gives python error

Categories

(Developer Services :: Mercurial: mozext, defect)

defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: sfink, Unassigned)

Details

Originally found because 'hg treestatus gaia' used to work, but now only 'hg treestatus Gaia' works.

% hg treestatus snorf
Traceback (most recent call last):
   ...
   File "/home/sfink/src/hg/root-3.2.4/lib64/python2.7/site-packages/mercurial/util.py", line 677, in check
    return func(*args, **kwargs)
  File "/home/sfink/.mozbuild/version-control-tools/hgext/mozext/__init__.py", line 505, in treestatus
    longest = max(len(s) for s in status)
ValueError: max() arg is an empty sequence

So it got the result from the treestatus server properly, but then it threw out everything not keyed by "snorf", resulting in an empty list. It should really write an error message about an unknown tree.
You need to log in before you can comment on or make changes to this bug.