Mercurial > hg
comparison tests/test-infinitepush-bundlestore.t @ 37198:78c2e9418278
infinitepush: drop the `--create` flag to push command
The extension added a `--create` flag for creating a new bookmark on the
bundlestore. This patch changes the bahviour to create a bookmark if it does not
exists and removes the requirement of the `--create` and then drop the logic
around the `--create` flag.
Tests are changed to drop the usage of `--create` flag.
Differential Revision: https://phab.mercurial-scm.org/D2107
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 09 Feb 2018 14:16:03 +0530 |
parents | 3be6f435db4f |
children | c5687ce3b411 |
comparison
equal
deleted
inserted
replaced
37197:7fa00a6f8180 | 37198:78c2e9418278 |
---|---|
16 $ setupserver | 16 $ setupserver |
17 $ cd .. | 17 $ cd .. |
18 $ hg clone ssh://user@dummy/repo client -q | 18 $ hg clone ssh://user@dummy/repo client -q |
19 $ cd client | 19 $ cd client |
20 $ mkcommit initialcommit | 20 $ mkcommit initialcommit |
21 $ hg push -r . --create | 21 $ hg push -r . |
22 pushing to ssh://user@dummy/repo | 22 pushing to ssh://user@dummy/repo |
23 searching for changes | 23 searching for changes |
24 remote: adding changesets | 24 remote: adding changesets |
25 remote: adding manifests | 25 remote: adding manifests |
26 remote: adding file changes | 26 remote: adding file changes |
27 remote: added 1 changesets with 1 changes to 1 files | 27 remote: added 1 changesets with 1 changes to 1 files |
28 $ mkcommit scratchcommit | 28 $ mkcommit scratchcommit |
29 $ hg push -r . --to scratch/mybranch --create | 29 $ hg push -r . --to scratch/mybranch |
30 pushing to ssh://user@dummy/repo | 30 pushing to ssh://user@dummy/repo |
31 searching for changes | 31 searching for changes |
32 remote: pushing 1 commit: | 32 remote: pushing 1 commit: |
33 remote: 20759b6926ce scratchcommit | 33 remote: 20759b6926ce scratchcommit |
34 $ hg log -G | 34 $ hg log -G |
138 | 138 |
139 $ scratchbookmarks | 139 $ scratchbookmarks |
140 scratch/mybranch 1de1d7d92f8965260391d0513fe8a8d5973d3042 | 140 scratch/mybranch 1de1d7d92f8965260391d0513fe8a8d5973d3042 |
141 | 141 |
142 Push scratch bookmark with no new revs | 142 Push scratch bookmark with no new revs |
143 $ hg push -r . --to scratch/anotherbranch --create | 143 $ hg push -r . --to scratch/anotherbranch |
144 pushing to ssh://user@dummy/repo | 144 pushing to ssh://user@dummy/repo |
145 searching for changes | 145 searching for changes |
146 remote: pushing 2 commits: | 146 remote: pushing 2 commits: |
147 remote: 20759b6926ce scratchcommit | 147 remote: 20759b6926ce scratchcommit |
148 remote: 1de1d7d92f89 new scratch commit | 148 remote: 1de1d7d92f89 new scratch commit |