hgext/win32text.py
changeset 16932 7985a9e2ddce
parent 16743 38caf405d010
child 18054 b35e3364f94a
equal deleted inserted replaced
16931:ee388b0a6f67 16932:7985a9e2ddce
   128                 continue
   128                 continue
   129             seen.add(f)
   129             seen.add(f)
   130             data = c[f].data()
   130             data = c[f].data()
   131             if not util.binary(data) and newline in data:
   131             if not util.binary(data) and newline in data:
   132                 if not halt:
   132                 if not halt:
   133                     ui.warn(_('Attempt to commit or push text file(s) '
   133                     ui.warn(_('attempt to commit or push text file(s) '
   134                               'using %s line endings\n') %
   134                               'using %s line endings\n') %
   135                               newlinestr[newline])
   135                               newlinestr[newline])
   136                 ui.warn(_('in %s: %s\n') % (short(c.node()), f))
   136                 ui.warn(_('in %s: %s\n') % (short(c.node()), f))
   137                 halt = True
   137                 halt = True
   138     if halt and hooktype == 'pretxnchangegroup':
   138     if halt and hooktype == 'pretxnchangegroup':