Submitter | phabricator |
---|---|
Date | April 7, 2018, 1:23 a.m. |
Message ID | <95caa6d78995ca3d9809b04da9088804@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/30507/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/upgrade.py b/mercurial/upgrade.py --- a/mercurial/upgrade.py +++ b/mercurial/upgrade.py @@ -480,11 +480,13 @@ mrevcount += len(rl) msrcsize += datasize mrawsize += rawsize - elif isinstance(rl, revlog.revlog): + elif isinstance(rl, filelog.filelog): fcount += 1 frevcount += len(rl) fsrcsize += datasize frawsize += rawsize + else: + error.ProgrammingError('unknown revlog type') if not revcount: return