mercurial/cmdutil.py
changeset 24364 135b23868f45
parent 24359 521fe8287dd5
child 24379 8c445d8a915b
equal deleted inserted replaced
24363:852801178a63 24364:135b23868f45
   586                 else:
   586                 else:
   587                     util.copyfile(src, target)
   587                     util.copyfile(src, target)
   588                 srcexists = True
   588                 srcexists = True
   589             except IOError, inst:
   589             except IOError, inst:
   590                 if inst.errno == errno.ENOENT:
   590                 if inst.errno == errno.ENOENT:
   591                     ui.warn(_('%s: deleted in working copy\n') % relsrc)
   591                     ui.warn(_('%s: deleted in working directory\n') % relsrc)
   592                     srcexists = False
   592                     srcexists = False
   593                 else:
   593                 else:
   594                     ui.warn(_('%s: cannot copy - %s\n') %
   594                     ui.warn(_('%s: cannot copy - %s\n') %
   595                             (relsrc, inst.strerror))
   595                             (relsrc, inst.strerror))
   596                     return True # report a failure
   596                     return True # report a failure