Mercurial > hg
comparison mercurial/dirstatemap.py @ 47900:40cf4b278f8f
dirstatemap: use the default code to handle "p2-tracked" case
We juste have to do minor value adjustement and the default code will do the rest.
This kind of change highglight that "clean_p2" is probably not the right name,
for that value. However this is all thing to be figured out and cleaned up once
are done moving logic at lower level.
Differential Revision: https://phab.mercurial-scm.org/D11325
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 16 Jul 2021 17:14:56 +0200 |
parents | 625b6ddb828c |
children | 3429f48d486d |
comparison
equal
deleted
inserted
replaced
47899:625b6ddb828c | 47900:40cf4b278f8f |
---|---|
293 return | 293 return |
294 else: | 294 else: |
295 self.addfile(filename, from_p2=True) | 295 self.addfile(filename, from_p2=True) |
296 return | 296 return |
297 elif not p1_tracked and p2_tracked and wc_tracked: | 297 elif not p1_tracked and p2_tracked and wc_tracked: |
298 self.addfile(filename, from_p2=True, possibly_dirty=possibly_dirty) | 298 clean_p2 = True |
299 return | |
300 elif possibly_dirty: | 299 elif possibly_dirty: |
301 pass | 300 pass |
302 elif wc_tracked: | 301 elif wc_tracked: |
303 # this is a "normal" file | 302 # this is a "normal" file |
304 if parentfiledata is None: | 303 if parentfiledata is None: |