mercurial/fileset.py
changeset 26587 56b2bcea2529
parent 26233 d3dbb65c8dc6
child 26995 d5a6be56970b
equal deleted inserted replaced
26586:d51c658d3f04 26587:56b2bcea2529
   361     for f in mctx.existing():
   361     for f in mctx.existing():
   362         d = mctx.ctx[f].data()
   362         d = mctx.ctx[f].data()
   363         try:
   363         try:
   364             d.decode(enc)
   364             d.decode(enc)
   365         except LookupError:
   365         except LookupError:
   366             raise util.Abort(_("unknown encoding '%s'") % enc)
   366             raise error.Abort(_("unknown encoding '%s'") % enc)
   367         except UnicodeDecodeError:
   367         except UnicodeDecodeError:
   368             continue
   368             continue
   369         s.append(f)
   369         s.append(f)
   370 
   370 
   371     return s
   371     return s