mercurial/localrepo.py
changeset 19650 36f48c7d5944
parent 19635 b9b7dc267e9f
child 19778 55ef79031009
equal deleted inserted replaced
19641:5528c31c629c 19650:36f48c7d5944
  1555             # symlink
  1555             # symlink
  1556             sane = []
  1556             sane = []
  1557             for f in modified:
  1557             for f in modified:
  1558                 if ctx2.flags(f) == 'l':
  1558                 if ctx2.flags(f) == 'l':
  1559                     d = ctx2[f].data()
  1559                     d = ctx2[f].data()
  1560                     if len(d) >= 1024 or '\n' in d or util.binary(d):
  1560                     if d == '' or len(d) >= 1024 or '\n' in d or util.binary(d):
  1561                         self.ui.debug('ignoring suspect symlink placeholder'
  1561                         self.ui.debug('ignoring suspect symlink placeholder'
  1562                                       ' "%s"\n' % f)
  1562                                       ' "%s"\n' % f)
  1563                         continue
  1563                         continue
  1564                 sane.append(f)
  1564                 sane.append(f)
  1565             modified = sane
  1565             modified = sane