mercurial/patch.py
changeset 5481 003d1f174fe1
parent 5477 bff41174563f
child 5482 e5eedd74e70f
equal deleted inserted replaced
5480:81bef3c355c5 5481:003d1f174fe1
   247     returns whether patch was applied with fuzz factor."""
   247     returns whether patch was applied with fuzz factor."""
   248 
   248 
   249     fuzz = False
   249     fuzz = False
   250     if cwd:
   250     if cwd:
   251         args.append('-d %s' % util.shellquote(cwd))
   251         args.append('-d %s' % util.shellquote(cwd))
   252     fp = os.popen('%s %s -p%d < %s' % (patcher, ' '.join(args), strip,
   252     fp = util.popen('%s %s -p%d < %s' % (patcher, ' '.join(args), strip,
   253                                        util.shellquote(patchname)))
   253                                        util.shellquote(patchname)))
   254 
   254 
   255     for line in fp:
   255     for line in fp:
   256         line = line.rstrip()
   256         line = line.rstrip()
   257         ui.note(line + '\n')
   257         ui.note(line + '\n')