mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
18346a9745
Summary: Sadly `buck test` runs `hg branch` and it breaks. Reviewed By: DurhamG Differential Revision: D10458543 fbshipit-source-id: 15da7d9c45e4740fc8aa0c4f57d304bef320db6b
51 lines
1.2 KiB
Perl
51 lines
1.2 KiB
Perl
Test various flags to turn off bad hg features.
|
|
|
|
$ newrepo
|
|
$ drawdag <<'EOS'
|
|
> A
|
|
> EOS
|
|
$ hg up -Cq $A
|
|
|
|
Test disabling the `hg merge` command:
|
|
$ hg merge
|
|
abort: nothing to merge
|
|
[255]
|
|
$ setconfig ui.allowmerge=False
|
|
$ hg merge
|
|
abort: merging is not supported for this repository
|
|
(use rebase instead)
|
|
[255]
|
|
|
|
Test disabling the `hg tag` command:
|
|
$ hg tag foo
|
|
$ hg tags
|
|
tip 1:9b0f5d3c138d
|
|
foo 0:426bada5c675
|
|
$ setconfig ui.allowtags=False
|
|
$ hg tag foo2
|
|
abort: new tags are disabled in this repository
|
|
[255]
|
|
$ hg tags
|
|
abort: tags are disabled in this repository
|
|
[255]
|
|
|
|
Test disabling the `hg branch` commands:
|
|
$ hg branch
|
|
default
|
|
$ setconfig ui.allowbranches=False
|
|
$ hg branch foo
|
|
abort: named branches are disabled in this repository
|
|
(use bookmarks instead)
|
|
[255]
|
|
$ setconfig ui.disallowedbrancheshint="use bookmarks instead! see docs"
|
|
$ hg branch -C
|
|
abort: named branches are disabled in this repository
|
|
(use bookmarks instead! see docs)
|
|
[255]
|
|
$ hg branches
|
|
abort: named branches are disabled in this repository
|
|
(use bookmarks instead! see docs)
|
|
[255]
|
|
$ hg branch
|
|
default
|