2020-02-05 20:40:12 +03:00
|
|
|
#require py2
|
|
|
|
|
2019-02-12 00:37:59 +03:00
|
|
|
$ . "$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
|
|
|
|
|
2020-01-31 23:58:35 +03:00
|
|
|
>>> _ = open("a", "w").write("0\n" * 5000)
|
2019-02-12 00:37:59 +03:00
|
|
|
$ 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
|
|
|
|
|