rtfd/readthedocs.org — Issue #147: update_repos breaks if mercurial repo has inactive branches
Author: redtoad
Created: 2011-12-09 18:05:37+00:00
State: open

I kept getting the error "Error getting tags: too many values to unpack" and managed to dig up this traceback:

Traceback (most recent call last):
File "/var/www/readthedocs.org/readthedocs/projects/tasks.py", line 197, in update_imported_docs
branches = version_repo.branches
File "/var/www/readthedocs.org/readthedocs/vcs_support/backends/hg.py", line 48, in branches
return self.parse_branches(stdout)
File "/var/www/readthedocs.org/readthedocs/vcs_support/backends/hg.py", line 62, in parse_branches
name, rev = branch
ValueError: too many values to unpack

Apparently, my repo had these branches

default 849:977050cb8c00
live 844:850bf39e854e
django-1.3 824:bad905aa8f09
shop 735:f463e31201a0 (inactive)

and trying to splitting the `shop` branch resulted in `['shop', '735:f463e31201a0', '(inactive)']` to be used. Which doesn't work of course.