mercurial/commands.py
changeset 38151 0dfa27e53c57
parent 38148 476324a304b2
child 38152 63553c2bef7e
equal deleted inserted replaced
38150:24e517600b29 38151:0dfa27e53c57
  2377                 _('note: graft of %d:%s created no changes to commit\n') %
  2377                 _('note: graft of %d:%s created no changes to commit\n') %
  2378                 (ctx.rev(), ctx))
  2378                 (ctx.rev(), ctx))
  2379 
  2379 
  2380     # remove state when we complete successfully
  2380     # remove state when we complete successfully
  2381     if not opts.get('dry_run'):
  2381     if not opts.get('dry_run'):
  2382         repo.vfs.unlinkpath('graftstate', ignoremissing=True)
  2382         graftstate.delete()
  2383 
  2383 
  2384     return 0
  2384     return 0
  2385 
  2385 
  2386 def _readgraftstate(repo, graftstate):
  2386 def _readgraftstate(repo, graftstate):
  2387     """read the graft state file and return a dict of the data stored in it"""
  2387     """read the graft state file and return a dict of the data stored in it"""