mercurial/localrepo.py
changeset 2085 f71e9656524f
parent 2082 856f0ba200bc
parent 2065 2ff37e3bf780
child 2098 190c6a81e6ad
equal deleted inserted replaced
2084:d66278012853 2085:f71e9656524f
  1592                     # or are we going back in time?
  1592                     # or are we going back in time?
  1593                     elif force or m2[f] != a or (p2 == pa and mw[f] == m1[f]):
  1593                     elif force or m2[f] != a or (p2 == pa and mw[f] == m1[f]):
  1594                         self.ui.debug(_(" remote %s is newer, get\n") % f)
  1594                         self.ui.debug(_(" remote %s is newer, get\n") % f)
  1595                         get[f] = m2[f]
  1595                         get[f] = m2[f]
  1596                         s = 1
  1596                         s = 1
  1597                 elif f in umap:
  1597                 elif f in umap or f in added:
  1598                     # this unknown file is the same as the checkout
  1598                     # this unknown file is the same as the checkout
       
  1599                     # we need to reset the dirstate if the file was added
  1599                     get[f] = m2[f]
  1600                     get[f] = m2[f]
  1600 
  1601 
  1601                 if not s and mfw[f] != mf2[f]:
  1602                 if not s and mfw[f] != mf2[f]:
  1602                     if force:
  1603                     if force:
  1603                         self.ui.debug(_(" updating permissions for %s\n") % f)
  1604                         self.ui.debug(_(" updating permissions for %s\n") % f)