hgext/mq.py
changeset 3685 193e9c6d1a6d
parent 3681 05d877dfd33d
child 3690 97d2c1909f98
child 3691 79151c94c3b4
equal deleted inserted replaced
3684:975c2469c316 3685:193e9c6d1a6d
  1792         raise util.Abort(_('A patch named %s already exists in the series file') % name)
  1792         raise util.Abort(_('A patch named %s already exists in the series file') % name)
  1793 
  1793 
  1794     if ui.verbose:
  1794     if ui.verbose:
  1795         ui.write('Renaming %s to %s\n' % (patch, name))
  1795         ui.write('Renaming %s to %s\n' % (patch, name))
  1796     i = q.find_series(patch)
  1796     i = q.find_series(patch)
  1797     q.full_series[i] = name
  1797     guards = q.guard_re.findall(q.full_series[i])
       
  1798     q.full_series[i] = name + ''.join([' #' + g for g in guards])
  1798     q.parse_series()
  1799     q.parse_series()
  1799     q.series_dirty = 1
  1800     q.series_dirty = 1
  1800 
  1801 
  1801     info = q.isapplied(patch)
  1802     info = q.isapplied(patch)
  1802     if info:
  1803     if info: