D6148: store: error out if fncache does not ends with a newline

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Mon Mar 18 19:35:40 EDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa920a9e1795a: store: error out if fncache does not ends with a newline (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6148?vs=14543&id=14550

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

AFFECTED FILES
  mercurial/store.py

CHANGE DETAILS

diff --git a/mercurial/store.py b/mercurial/store.py
--- a/mercurial/store.py
+++ b/mercurial/store.py
@@ -481,6 +481,8 @@
                 # chunksize, so let's keep iterating
                 pass
 
+        if chunk:
+            raise error.Abort(_("fncache does not ends with a newline"))
         self._checkentries(fp)
         fp.close()
 



To: pulkit, #hg-reviewers
Cc: martinvonz, mjpieters, mercurial-devel


More information about the Mercurial-devel mailing list