mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
fe56f44ca0
Summary: Mononoke throws an error if we request the nullid. In the long term we want to get rid of the concept of the nullid entirely, so let's just add some Python level blocks to prevent us from attempting to fetch it. This way we can start to limit how much Rust has to know about these concepts. Reviewed By: sfilipco Differential Revision: D23332359 fbshipit-source-id: 8a67703ba1197ead00d4984411f7ae0325612605
57 lines
1.2 KiB
Perl
57 lines
1.2 KiB
Perl
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This software may be used and distributed according to the terms of the
|
|
# GNU General Public License found in the LICENSE file in the root
|
|
# directory of this source tree.
|
|
|
|
$ . "${TEST_FIXTURES}/library.sh"
|
|
|
|
setup configuration
|
|
$ setup_common_config
|
|
$ cd $TESTTMP
|
|
|
|
setup common configuration
|
|
$ cat >> $HGRCPATH <<EOF
|
|
> [ui]
|
|
> ssh="$DUMMYSSH"
|
|
> [extensions]
|
|
> sparse=
|
|
> EOF
|
|
|
|
setup repo
|
|
$ hg init repo-hg
|
|
$ cd repo-hg
|
|
$ setup_hg_server
|
|
$ hg debugdrawdag <<EOF
|
|
> C
|
|
> |
|
|
> B
|
|
> |
|
|
> A
|
|
> EOF
|
|
|
|
create master bookmark
|
|
|
|
$ hg bookmark master_bookmark -r tip
|
|
|
|
blobimport them into Mononoke storage and start Mononoke
|
|
$ cd ..
|
|
$ blobimport repo-hg/.hg repo
|
|
|
|
start mononoke
|
|
$ mononoke
|
|
$ wait_for_mononoke $TESTTMP/repo
|
|
|
|
Clone the repo
|
|
$ hgclone_treemanifest ssh://user@dummy/repo-hg repo2 --noupdate --config extensions.remotenames= -q
|
|
$ cd repo2
|
|
$ setup_hg_client
|
|
$ cat >> .hgsparse_profile <<EOF
|
|
> [include]
|
|
> foo
|
|
> EOF
|
|
$ hg commit -Aqm 'Add sparse profile'
|
|
$ hg sparse enable .hgsparse_profile
|
|
$ hg up null
|
|
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
|