Mercurial > hg
comparison tests/test-stack.t @ 37004:68fcc5503ec5
stack: return a sorted smartrev by default
Most stack customers will display a list of revisions, sort it by default.
Differential Revision: https://phab.mercurial-scm.org/D2399
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 19 Jan 2018 17:29:50 +0100 |
parents | 407934a97bc7 |
children |
comparison
equal
deleted
inserted
replaced
37003:2987726085c6 | 37004:68fcc5503ec5 |
---|---|
203 o 7 foo draft c_e | 203 o 7 foo draft c_e |
204 | | 204 | |
205 ~ | 205 ~ |
206 Check the stack order | 206 Check the stack order |
207 $ hg log -r "first(stack())" | 207 $ hg log -r "first(stack())" |
208 10 foo draft c_h | 208 9 foo draft c_g |
209 $ hg log -r "first(stack(10))" | 209 $ hg log -r "first(stack(10))" |
210 10 foo draft c_h | 210 9 foo draft c_g |
211 $ hg log -r "first(stack(8))" | 211 $ hg log -r "first(stack(8))" |
212 8 foo draft c_f | 212 7 foo draft c_e |
213 $ hg log -r "first(stack(head()))" | 213 $ hg log -r "first(stack(head()))" |
214 8 foo draft c_f | 214 7 foo draft c_e |
215 | 215 |
216 Case with multiple heads with unstability involved | 216 Case with multiple heads with unstability involved |
217 -------------------------------------------------- | 217 -------------------------------------------------- |
218 | 218 |
219 We amend the message to make sure the display base pick the right changeset | 219 We amend the message to make sure the display base pick the right changeset |