Submitter | Gregory Szorc |
---|---|
Date | July 14, 2015, 8:51 p.m. |
Message ID | <a5aef0c6311664026c7f.1436907073@gps-mbp.local> |
Download | mbox | patch |
Permalink | /patch/9986/ |
State | Changes Requested |
Headers | show |
Comments
Patch
diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py --- a/mercurial/changegroup.py +++ b/mercurial/changegroup.py @@ -758,10 +758,11 @@ def addchangegroup(repo, source, srctype if not (srccontent or emptyok): raise util.Abort(_("received changelog group is empty")) clend = len(cl) changesets = clend - clstart - for c in xrange(clstart, clend): - efiles.update(repo[c].files()) + with cl.persistentreadhandle(): + for c in xrange(clstart, clend): + efiles.update(repo[c].files()) efiles = len(efiles) repo.ui.progress(_('changesets'), None) # pull off the manifest group