Mercurial > evolve
diff tests/test-topic-push.t @ 2982:fef934b7ed86
topic: add a --topic option to "push" command
This is symmetrical with --bookmark or --branch; it selects changesets in
specified topic as revisions to push.
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Fri, 22 Sep 2017 13:43:38 +0200 |
parents | 06844693bb21 |
children | c0de0010ec30 |
line wrap: on
line diff
--- a/tests/test-topic-push.t Fri Sep 22 12:48:57 2017 +0200 +++ b/tests/test-topic-push.t Fri Sep 22 13:43:38 2017 +0200 @@ -157,6 +157,57 @@ |/ o 0 default public CA +push --topic + + $ hg log -G -R $TESTTMP/draft + o 3 default babar draft CD + | + | o 2 mountain public CC + |/ + | o 1 default public CB + |/ + o 0 default public CA + + $ echo bbb >> aaa + $ hg commit -m "C'A" + $ hg up 1 + 2 files updated, 0 files merged, 1 files removed, 0 files unresolved + $ hg topic --clear + $ echo bbb >> bbb + $ hg commit -m "C'B" + $ hg log -G + @ 6 default draft C'B + | + | o 5 default babar draft C'A + | | + | o 4 default babar draft CD + | | + | | o 3 mountain public CC + | |/ + o | 1 default public CB + |/ + o 0 default public CA + + $ hg push draft --topic babar + pushing to $TESTTMP/draft + searching for changes + adding changesets + adding manifests + adding file changes + added 1 changesets with 1 changes to 1 files + $ hg log -G -R $TESTTMP/draft + o 4 default babar draft C'A + | + o 3 default babar draft CD + | + | o 2 mountain public CC + |/ + | o 1 default public CB + |/ + o 0 default public CA + + $ hg strip --config extensions.strip= --no-backup -r 5: --quiet + $ hg strip --config extensions.strip= -R $TESTTMP/draft --no-backup -r 4: --quiet Pushing a new topic to a publishing server should be seen as a new head