mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
1f56e13c2a
Summary: The url -> remote name logic has two versions. The one in `ui.paths.getname` works better practically with schemes support. See the test change for context. Context: https://fb.workplace.com/groups/mercurialusers/posts/5429563457093230/?comment_id=5472052212844354&reply_comment_id=5472054849510757 Reviewed By: zzl0 Differential Revision: D40867171 fbshipit-source-id: 51314451fc7d0badbf254ebcc6eb0bd7f1ce4d27
22 lines
566 B
Perl
22 lines
566 B
Perl
#debugruntest-compatible
|
|
|
|
$ enable schemes remotenames
|
|
$ configure modern
|
|
|
|
$ cat >> "$HGRCPATH" << EOF
|
|
> [schemes]
|
|
> foo = eager://$TESTTMP/
|
|
> [remotenames]
|
|
> selectivepulldefault = master, stable
|
|
> EOF
|
|
|
|
$ newrepo
|
|
$ echo 'A..C' | drawdag
|
|
$ hg path -a default "foo://server1"
|
|
$ hg push -q --to master --create -r $C
|
|
$ hg push -q --to stable --create -r $B
|
|
|
|
$ hg bookmarks --remote
|
|
remote/master 26805aba1e600a82e93661149f2313866a221a7b
|
|
remote/stable 112478962961147124edd43549aedd1a335e44bf
|