mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
selectivepull: test clone and push
Summary: added test cases for clone and push to show how they interfere with selectivepull feature Reviewed By: mitrandir77 Differential Revision: D16084217 fbshipit-source-id: 38774f8badfacfb9a8b2a911d2e4ae6a5cde7470
This commit is contained in:
parent
dac9448582
commit
56b69cd493
@ -277,3 +277,32 @@ when selectivepull is disabled
|
||||
"rev": 0
|
||||
}
|
||||
]
|
||||
|
||||
Clone remote repo with the selectivepull enabled
|
||||
$ cd ..
|
||||
|
||||
$ hg clone --config remotenames.selectivepull=True --config remotenames.selectivepulldefault=master ssh://user@dummy/remoterepo new_localrepo
|
||||
adding changesets
|
||||
adding manifests
|
||||
adding file changes
|
||||
added 2 changesets with 2 changes to 1 files
|
||||
new changesets 1449e7934ec1:0238718db2b1
|
||||
updating to branch default
|
||||
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
||||
$ cd new_localrepo
|
||||
|
||||
$ setconfig remotenames.selectivepull=True
|
||||
$ setconfig remotenames.selectivepullaccessedbookmarks=True
|
||||
$ setconfig remotenames.selectivepulldefault=master
|
||||
|
||||
$ hg book --list-subscriptions
|
||||
default/master 1:0238718db2b1
|
||||
default/thirdbook 0:1449e7934ec1
|
||||
|
||||
Check remote bookmarks after push
|
||||
$ echo "new commit to push" >> pushsh
|
||||
$ hg commit -qAm "push commit"
|
||||
$ hg push -r . --to master -q
|
||||
$ hg book --list-subscriptions
|
||||
default/master 2:a81520e7283a
|
||||
default/thirdbook 0:1449e7934ec1
|
||||
|
Loading…
Reference in New Issue
Block a user