Bug 5062 - debugrevdata -m -d fails with an empty manifest in the manifest revlog
Summary: debugrevdata -m -d fails with an empty manifest in the manifest revlog
Status: RESOLVED FIXED
Alias: None
Product: Mercurial
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: unspecified
Hardware: PC Linux
: wish feature
Assignee: Bugzilla
URL:
Keywords: easy
Depends on:
Blocks:
 
Reported: 2016-01-25 01:01 UTC by Mike Hommey
Modified: 2016-03-01 00:00 UTC (History)
2 users (show)

See Also:
Python Version: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Hommey 2016-01-25 01:01 UTC
$ hg clone https://bitbucket.org/birkenfeld/sphinx
$ cd sphinx
$ hg debugrevlog -m -d
(snip)
  File "/usr/lib/python2.7/dist-packages/mercurial/commands.py", line 2958, in debugrevlog
    rs, ts, ts / r.end(rev), len(heads), clen))
ZeroDivisionError: integer division or modulo by zero
Comment 1 HG Bot 2016-02-22 15:31 UTC
Fixed by https://selenic.com/repo/hg/rev/740208f6f6af
liscju <piotr.listkiewicz@gmail.com>
debugrevlog: fix dumping manifest fails on empty first revision (issue5062)

(please test the fix)
Comment 2 Bugzilla 2016-03-01 00:00 UTC
Bug was set to TESTING for 7 days, resolving