Mercurial > hg
changeset 25102:bb2f543b48b5
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 15 May 2015 11:52:09 -0500 |
parents | d6e7ac651973 (current diff) 91c2278c68a3 (diff) |
children | ce00b2e96d09 |
files | hgext/rebase.py mercurial/revset.py tests/test-revset.t |
diffstat | 4 files changed, 41 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/rebase.py Tue Apr 14 12:53:48 2015 -0700 +++ b/hgext/rebase.py Fri May 15 11:52:09 2015 -0500 @@ -890,7 +890,7 @@ # no backup of rebased cset versions needed repair.strip(repo.ui, repo, strippoints) - if activebookmark: + if activebookmark and activebookmark in repo._bookmarks: bookmarks.activate(repo, activebookmark) clearstatus(repo)
--- a/mercurial/revset.py Tue Apr 14 12:53:48 2015 -0700 +++ b/mercurial/revset.py Fri May 15 11:52:09 2015 -0500 @@ -2095,7 +2095,6 @@ "parent": parentspec, "parentpost": p1, "only": only, - "onlypost": only, } def optimize(x, small): @@ -2112,6 +2111,8 @@ elif op == 'only': return optimize(('func', ('symbol', 'only'), ('list', x[1], x[2])), small) + elif op == 'onlypost': + return optimize(('func', ('symbol', 'only'), x[1]), small) elif op == 'dagrangepre': return optimize(('func', ('symbol', 'ancestors'), x[1]), small) elif op == 'dagrangepost':
--- a/tests/test-bookmarks-rebase.t Tue Apr 14 12:53:48 2015 -0700 +++ b/tests/test-bookmarks-rebase.t Fri May 15 11:52:09 2015 -0500 @@ -90,3 +90,18 @@ * three 4:dd7c838e8362 two 3:42e5ed2cdcf4 +after aborted rebase, restoring a bookmark that has been removed should not fail + + $ hg rebase -s three -d two + rebasing 4:dd7c838e8362 "4" (tip three) + merging d + warning: conflicts during merge. + merging d incomplete! (edit conflicts, then use 'hg resolve --mark') + unresolved conflicts (see hg resolve, then hg rebase --continue) + [1] + $ hg bookmark -d three + $ hg rebase --abort + rebase aborted + $ hg bookmark + one 1:925d80f479bb + two 3:42e5ed2cdcf4
--- a/tests/test-revset.t Tue Apr 14 12:53:48 2015 -0700 +++ b/tests/test-revset.t Fri May 15 11:52:09 2015 -0500 @@ -593,6 +593,29 @@ 8 9 +Test opreand of '%' is optimized recursively (issue4670) + + $ try --optimize '8:9-8%' + (onlypost + (minus + (range + ('symbol', '8') + ('symbol', '9')) + ('symbol', '8'))) + * optimized: + (func + ('symbol', 'only') + (and + (range + ('symbol', '8') + ('symbol', '9')) + (not + ('symbol', '8')))) + * set: + <baseset+ [8, 9]> + 8 + 9 + Test the order of operations $ log '7 + 9%5 + 2'