mercurial/commands.py
changeset 19261 043abd6a91d1
parent 19234 7bbad79b9542
parent 19253 e078ea9b4ce4
child 19306 59cdd3a7e281
equal deleted inserted replaced
19252:9e9c407e0d1f 19261:043abd6a91d1
  1327     if opts.get('subrepos'):
  1327     if opts.get('subrepos'):
  1328         if opts.get('amend'):
  1328         if opts.get('amend'):
  1329             raise util.Abort(_('cannot amend with --subrepos'))
  1329             raise util.Abort(_('cannot amend with --subrepos'))
  1330         # Let --subrepos on the command line override config setting.
  1330         # Let --subrepos on the command line override config setting.
  1331         ui.setconfig('ui', 'commitsubrepos', True)
  1331         ui.setconfig('ui', 'commitsubrepos', True)
       
  1332 
       
  1333     if repo.vfs.exists('graftstate'):
       
  1334         raise util.Abort(_('cannot commit an interrupted graft operation'),
       
  1335                          hint=_('use "hg graft -c" to continue graft'))
  1332 
  1336 
  1333     extra = {}
  1337     extra = {}
  1334     if opts.get('close_branch'):
  1338     if opts.get('close_branch'):
  1335         extra['close'] = 1
  1339         extra['close'] = 1
  1336 
  1340