Mercurial > evolve
changeset 2860:27ae7afd9a2a
tests: add whitespaces in test-topic.t to make it more readable
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 28 Aug 2017 19:23:16 +0530 |
parents | 2a228fb6c23e |
children | 54a95c333102 |
files | tests/test-topic.t |
diffstat | 1 files changed, 38 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-topic.t Thu Aug 24 11:00:13 2017 -0700 +++ b/tests/test-topic.t Mon Aug 28 19:23:16 2017 +0530 @@ -274,6 +274,7 @@ | date: Thu Jan 01 00:00:00 1970 +0000 | summary: start on narf | + $ hg push -f ../pinky -r query pushing to ../pinky searching for changes @@ -281,6 +282,7 @@ adding manifests adding file changes added 1 changesets with 1 changes to 1 files (+1 heads) + $ hg -R ../pinky log -Gl 4 o changeset: 7:c01515cfc331 | tag: tip @@ -309,6 +311,7 @@ | date: Thu Jan 01 00:00:00 1970 +0000 | summary: start on narf | + $ hg topics * query $ cd ../pinky @@ -387,6 +390,7 @@ | date: Thu Jan 01 00:00:00 1970 +0000 | summary: start on narf | + $ cd ../brain $ hg topics * query @@ -728,6 +732,7 @@ $ hg topics --rev '13::19' changewat switching to topic changewat changed topic on 2 changes + $ hg log -Gr 'draft()' @ changeset: 21:56c83be6105f | tag: tip @@ -752,6 +757,7 @@ 1 files updated, 0 files merged, 0 files removed, 0 files unresolved $ echo gamma >> gamma $ hg ci -m gamma + $ hg log -Gr 'draft()' @ changeset: 22:0d3d805542b4 | tag: tip @@ -774,9 +780,11 @@ | date: Thu Jan 01 00:00:00 1970 +0000 | summary: start on fran | + $ hg topics --rev 't1::' changewut switching to topic changewut changed topic on 3 changes + $ hg log -Gr 'draft()' @ changeset: 25:729ed5717393 | tag: tip @@ -811,9 +819,11 @@ t2@ gamma (current) t1: start on fran t0^ Add file delta (base) + $ hg up t0 preserving the current topic 'changewut' 2 files updated, 0 files merged, 0 files removed, 0 files unresolved + $ hg topic * changewut $ hg stack @@ -864,47 +874,55 @@ date: Thu Jan 01 00:00:00 1970 +0000 summary: added a +Testing the --age flag for `hg topics` +====================================== + $ hg topic topic1970 --rev 0 switching to topic topic1970 changed topic on 1 changes + $ hg add b $ hg topic topic1990 $ hg ci -m "Added b" --config devel.default-date="631152000 0" $ hg add c $ hg topic topic2010 $ hg ci -m "Added c" --config devel.default-date="1262304000 0" - $ hg log - changeset: 3:9048b194797d - tag: tip - topic: topic2010 - user: test - date: Fri Jan 01 00:00:00 2010 +0000 - summary: Added c - - changeset: 2:186d493c7f8d - topic: topic1990 - user: test - date: Mon Jan 01 00:00:00 1990 +0000 - summary: Added b - - changeset: 1:e5a30a141954 - topic: topic1970 - parent: -1:000000000000 - user: test - date: Thu Jan 01 00:00:00 1970 +0000 - summary: added a + + $ hg log -G + @ changeset: 3:9048b194797d + | tag: tip + | topic: topic2010 + | user: test + | date: Fri Jan 01 00:00:00 2010 +0000 + | summary: Added c + | + o changeset: 2:186d493c7f8d + | topic: topic1990 + | user: test + | date: Mon Jan 01 00:00:00 1990 +0000 + | summary: Added b + | + o changeset: 1:e5a30a141954 + topic: topic1970 + parent: -1:000000000000 + user: test + date: Thu Jan 01 00:00:00 1970 +0000 + summary: added a $ hg topics topic1970 topic1990 * topic2010 + $ hg topics --age * topic2010 (2010-01-01) topic1990 (1990-01-01) topic1970 (1970-01-01) + $ hg up topic1970 switching to topic topic1970 0 files updated, 0 files merged, 2 files removed, 0 files unresolved + $ hg topics --age topic2010 (2010-01-01) topic1990 (1990-01-01)