stack: change foo#stack[:] revset to also include stack base
This makes the revset to be less "special" and it'll work like a regular slice of a list that has all stack revs in it starting with stack base (e.g. [s0, s1, s2, ...]).
But foo#stack revset stays the same, meaning you don't get stack base when you use it. So if you just want to have all stack revs sans s0, you should use e.g. foo#s instead of foo#s[:].
Note that foo#stack revset is not available on 5.3 and older versions of Mercurial. If you cannot upgrade, you need to exclude stack base explicitly with foo#s[1:].
Merge request reports
Activity
requested review from @marmoute
assigned to @marmoute
added 3 commits
-
fea4da8e...2da56c12 - 2 commits from branch
branch/default
- 979171f8496a - stack: change foo#stack[:] revset to also include stack base
-
fea4da8e...2da56c12 - 2 commits from branch
This series exists because @yuja somehow managed to convince us to stop having
x#s[:]
stop beingx#s[1:99]
and start beingx#s[0:99]
, with the "good" alternative of havingx#s
to meanx#s[1:99]
that we commonly needs.However, review this changeset I see the change where
x#s[:2]
now includex#s[0]
this seems like a significant foot gun. So maybe we should keep thes/stack
space special regarding it handling of0
value.@yuja what do you think ?