D3152: upgrade: sniff for filelog type
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Fri Apr 6 21:23:17 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc8666a9e9e11: upgrade: sniff for filelog type (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3152?vs=7766&id=7850
REVISION DETAIL
https://phab.mercurial-scm.org/D3152
AFFECTED FILES
mercurial/upgrade.py
CHANGE DETAILS
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
To: indygreg, #hg-reviewers, durin42
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list