##// END OF EJS Templates
merge with stable
Matt Mackall -
r25102:bb2f543b merge default
parent child Browse files
Show More
@@ -890,7 +890,7 b' def abort(repo, originalwd, target, stat'
890 # no backup of rebased cset versions needed
890 # no backup of rebased cset versions needed
891 repair.strip(repo.ui, repo, strippoints)
891 repair.strip(repo.ui, repo, strippoints)
892
892
893 if activebookmark:
893 if activebookmark and activebookmark in repo._bookmarks:
894 bookmarks.activate(repo, activebookmark)
894 bookmarks.activate(repo, activebookmark)
895
895
896 clearstatus(repo)
896 clearstatus(repo)
@@ -2095,7 +2095,6 b' methods = {'
2095 "parent": parentspec,
2095 "parent": parentspec,
2096 "parentpost": p1,
2096 "parentpost": p1,
2097 "only": only,
2097 "only": only,
2098 "onlypost": only,
2099 }
2098 }
2100
2099
2101 def optimize(x, small):
2100 def optimize(x, small):
@@ -2112,6 +2111,8 b' def optimize(x, small):'
2112 elif op == 'only':
2111 elif op == 'only':
2113 return optimize(('func', ('symbol', 'only'),
2112 return optimize(('func', ('symbol', 'only'),
2114 ('list', x[1], x[2])), small)
2113 ('list', x[1], x[2])), small)
2114 elif op == 'onlypost':
2115 return optimize(('func', ('symbol', 'only'), x[1]), small)
2115 elif op == 'dagrangepre':
2116 elif op == 'dagrangepre':
2116 return optimize(('func', ('symbol', 'ancestors'), x[1]), small)
2117 return optimize(('func', ('symbol', 'ancestors'), x[1]), small)
2117 elif op == 'dagrangepost':
2118 elif op == 'dagrangepost':
@@ -90,3 +90,18 b' aborted rebase should restore active boo'
90 * three 4:dd7c838e8362
90 * three 4:dd7c838e8362
91 two 3:42e5ed2cdcf4
91 two 3:42e5ed2cdcf4
92
92
93 after aborted rebase, restoring a bookmark that has been removed should not fail
94
95 $ hg rebase -s three -d two
96 rebasing 4:dd7c838e8362 "4" (tip three)
97 merging d
98 warning: conflicts during merge.
99 merging d incomplete! (edit conflicts, then use 'hg resolve --mark')
100 unresolved conflicts (see hg resolve, then hg rebase --continue)
101 [1]
102 $ hg bookmark -d three
103 $ hg rebase --abort
104 rebase aborted
105 $ hg bookmark
106 one 1:925d80f479bb
107 two 3:42e5ed2cdcf4
@@ -593,6 +593,29 b" Test '%' operator"
593 8
593 8
594 9
594 9
595
595
596 Test opreand of '%' is optimized recursively (issue4670)
597
598 $ try --optimize '8:9-8%'
599 (onlypost
600 (minus
601 (range
602 ('symbol', '8')
603 ('symbol', '9'))
604 ('symbol', '8')))
605 * optimized:
606 (func
607 ('symbol', 'only')
608 (and
609 (range
610 ('symbol', '8')
611 ('symbol', '9'))
612 (not
613 ('symbol', '8'))))
614 * set:
615 <baseset+ [8, 9]>
616 8
617 9
618
596 Test the order of operations
619 Test the order of operations
597
620
598 $ log '7 + 9%5 + 2'
621 $ log '7 + 9%5 + 2'
General Comments 0
You need to be logged in to leave comments. Login now