##// END OF EJS Templates
phases: prevent mq to qimport immutable change.
Pierre-Yves David -
r15704:8857e150 default
parent child Browse files
Show More
@@ -1765,6 +1765,9 b' class queue(object):'
1765
1765
1766 diffopts = self.diffopts({'git': git})
1766 diffopts = self.diffopts({'git': git})
1767 for r in rev:
1767 for r in rev:
1768 if not repo[r].mutable():
1769 raise util.Abort(_('revision %d is not mutable') % r,
1770 hint=_('see "hg help phases" for details'))
1768 p1, p2 = repo.changelog.parentrevs(r)
1771 p1, p2 = repo.changelog.parentrevs(r)
1769 n = repo.changelog.node(r)
1772 n = repo.changelog.node(r)
1770 if p2 != nullrev:
1773 if p2 != nullrev:
@@ -32,3 +32,9 b' valid patches before fail added to serie'
32
32
33 $ hg qseries
33 $ hg qseries
34 b.patch
34 b.patch
35
36 $ hg pull -q -r 0 . # update phase
37 $ hg qimport -r 0
38 abort: revision 0 is not mutable
39 (see "hg help phases" for details)
40 [255]
General Comments 0
You need to be logged in to leave comments. Login now