Mercurial > hg-stable
diff hgext/mq.py @ 3685:193e9c6d1a6d
Issue424: mq patch loses guard when qrenamed
author | Mathieu Clabaut <mathieu.clabaut@gmail.com> |
---|---|
date | Sun, 19 Nov 2006 23:47:19 +0100 |
parents | 05d877dfd33d |
children | 97d2c1909f98 79151c94c3b4 |
line wrap: on
line diff
--- a/hgext/mq.py Sun Nov 19 16:32:36 2006 -0600 +++ b/hgext/mq.py Sun Nov 19 23:47:19 2006 +0100 @@ -1794,7 +1794,8 @@ if ui.verbose: ui.write('Renaming %s to %s\n' % (patch, name)) i = q.find_series(patch) - q.full_series[i] = name + guards = q.guard_re.findall(q.full_series[i]) + q.full_series[i] = name + ''.join([' #' + g for g in guards]) q.parse_series() q.series_dirty = 1