mercurial/dirstate.py
changeset 52055 b332ae615714
parent 51925 93d872a06132
child 52741 5c48fd4c0e68
equal deleted inserted replaced
52054:f5742367a279 52055:b332ae615714
  1767                         # issue6456: Size returned may be longer due to
  1767                         # issue6456: Size returned may be longer due to
  1768                         # encryption on EXT-4 fscrypt, undecided.
  1768                         # encryption on EXT-4 fscrypt, undecided.
  1769                         ladd(fn)
  1769                         ladd(fn)
  1770                     else:
  1770                     else:
  1771                         madd(fn)
  1771                         madd(fn)
  1772                 elif not t.mtime_likely_equal_to(timestamp.mtime_of(st)):
  1772                 else:
  1773                     # There might be a change in the future if for example the
  1773                     reliable = None
  1774                     # internal clock is off, but this is a case where the issues
  1774                     if mtime_boundary is not None:
  1775                     # the user would face would be a lot worse and there is
  1775                         reliable = timestamp.reliable_mtime_of(
  1776                     # nothing we can really do.
  1776                             st, mtime_boundary
  1777                     ladd(fn)
  1777                         )
  1778                 elif listclean:
  1778                     elif t.mtime_likely_equal_to(timestamp.mtime_of(st)):
  1779                     cadd(fn)
  1779                         # We can't compute the current fs time, so we're in
       
  1780                         # a readonly fs or a LFS context.
       
  1781                         cadd(fn)
       
  1782                         continue
       
  1783 
       
  1784                     if reliable is None or not t.mtime_likely_equal_to(
       
  1785                         reliable
       
  1786                     ):
       
  1787                         # There might be a change in the future if for example
       
  1788                         # the internal clock is off, but this is a case where
       
  1789                         # the issues the user would face would be a lot worse
       
  1790                         # and there is nothing we can really do.
       
  1791                         ladd(fn)
       
  1792                     elif listclean:
       
  1793                         cadd(fn)
  1780         status = scmutil.status(
  1794         status = scmutil.status(
  1781             modified, added, removed, deleted, unknown, ignored, clean
  1795             modified, added, removed, deleted, unknown, ignored, clean
  1782         )
  1796         )
  1783         return (lookup, status, mtime_boundary)
  1797         return (lookup, status, mtime_boundary)
  1784 
  1798