Patchwork D11120: dirstate-item: use `set_possibly_dirty` in `pure.pack_dirstate`

login
register
mail settings
Submitter phabricator
Date July 19, 2021, 10:39 a.m.
Message ID <differential-rev-PHID-DREV-o62mhhjumqo23srihrt6-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49433/
State Superseded
Headers show

Comments

phabricator - July 19, 2021, 10:39 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Lets make use of the new function.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  mercurial/pure/parsers.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/pure/parsers.py b/mercurial/pure/parsers.py
--- a/mercurial/pure/parsers.py
+++ b/mercurial/pure/parsers.py
@@ -588,8 +588,7 @@ 
             # dirstate, forcing future 'status' calls to compare the
             # contents of the file if the size is the same. This prevents
             # mistakenly treating such files as clean.
-            e = DirstateItem(e.state, e.mode, e.size, AMBIGUOUS_TIME)
-            dmap[f] = e
+            e.set_possibly_dirty()
 
         if f in copymap:
             f = b"%s\0%s" % (f, copymap[f])