mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
cbf6db3c58
Reviewed By: xavierd Differential Revision: D19744346 fbshipit-source-id: b9defccfb396218b2d2fc4d4a2aee438468dcc60
33 lines
600 B
Perl
33 lines
600 B
Perl
#require py2
|
|
|
|
$ . "$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
|
|
|