mirror of
https://github.com/facebook/sapling.git
synced 2024-12-29 16:12:23 +03:00
ab3a7cb21f
Summary: In preparation for merging fb-mercurial sources to the Eden repository, move everything from the top-level directory into an `eden/scm` subdirectory.
31 lines
582 B
Perl
31 lines
582 B
Perl
$ . "$RUNTESTDIR/hgsql/library.sh"
|
|
$ . "$RUNTESTDIR/hggit/testutil"
|
|
$ shorttraceback
|
|
$ enable lz4revlog
|
|
|
|
$ git init a-git
|
|
Initialized empty Git repository in $TESTTMP/a-git/.git/
|
|
$ cd a-git
|
|
|
|
Make "a" compressable
|
|
|
|
>>> open("a", "w").write("0\n" * 5000)
|
|
$ git add a
|
|
$ git commit -m a
|
|
[master (root-commit) *] a (glob)
|
|
1 file changed, 5000 insertions(+)
|
|
create mode 100644 a
|
|
|
|
Setup an hgsql repo
|
|
|
|
$ cd $TESTTMP
|
|
$ initserver a-hg a-hg
|
|
$ cd a-hg
|
|
|
|
Pull from git
|
|
|
|
$ hg pull $TESTTMP/a-git
|
|
pulling from $TESTTMP/a-git
|
|
importing git objects into hg
|
|
|