Patchwork D1865: repair: filter out unknown revisions from phasecache within transaction

login
register
mail settings
Submitter phabricator
Date Jan. 18, 2018, 1:41 p.m.
Message ID <2cee227f4a35fec7d23ac89c7562aad0@localhost.localdomain>
Download mbox | patch
Permalink /patch/26894/
State Not Applicable
Headers show

Comments

phabricator - Jan. 18, 2018, 1:41 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG54074a82e050: repair: filter out unknown revisions from phasecache within transaction (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1865?vs=4840&id=4896

REVISION DETAIL
  https://phab.mercurial-scm.org/D1865

AFFECTED FILES
  mercurial/repair.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, yuja
Cc: mercurial-devel

Patch

diff --git a/mercurial/repair.py b/mercurial/repair.py
--- a/mercurial/repair.py
+++ b/mercurial/repair.py
@@ -203,8 +203,8 @@ 
 
             deleteobsmarkers(repo.obsstore, stripobsidx)
             del repo.obsstore
+            repo._phasecache.filterunknown(repo)
 
-        repo._phasecache.filterunknown(repo)
         if tmpbundlefile:
             ui.note(_("adding branch\n"))
             f = vfs.open(tmpbundlefile, "rb")