hgext/histedit.py
changeset 24009 00d331763442
parent 24002 96d130697f07
child 24111 11d72683f3de
equal deleted inserted replaced
24007:240343e13c4d 24009:00d331763442
   577             if len(freeargs) > 1:
   577             if len(freeargs) > 1:
   578                 raise util.Abort(
   578                 raise util.Abort(
   579                     _('only one repo argument allowed with --outgoing'))
   579                     _('only one repo argument allowed with --outgoing'))
   580         else:
   580         else:
   581             revs.extend(freeargs)
   581             revs.extend(freeargs)
       
   582             if len(revs) == 0:
       
   583                 histeditdefault = ui.config('histedit', 'defaultrev')
       
   584                 if histeditdefault:
       
   585                     revs.append(histeditdefault)
   582             if len(revs) != 1:
   586             if len(revs) != 1:
   583                 raise util.Abort(
   587                 raise util.Abort(
   584                     _('histedit requires exactly one ancestor revision'))
   588                     _('histedit requires exactly one ancestor revision'))
   585 
   589 
   586 
   590