2012-10-31 04:03:26 +04:00
|
|
|
Load commonly used test logic
|
2018-01-09 17:08:01 +03:00
|
|
|
$ . "$TESTDIR/hggit/testutil"
|
2012-10-31 04:03:26 +04:00
|
|
|
|
2012-10-31 08:01:03 +04:00
|
|
|
$ git init gitrepo
|
2012-09-14 04:49:42 +04:00
|
|
|
Initialized empty Git repository in $TESTTMP/gitrepo/.git/
|
2012-10-31 08:01:03 +04:00
|
|
|
$ cd gitrepo
|
2018-01-09 16:53:20 +03:00
|
|
|
$ git commit --allow-empty -m empty
|
|
|
|
[master (root-commit) 6782568] empty
|
2012-09-10 08:26:43 +04:00
|
|
|
|
|
|
|
$ cd ..
|
2012-10-31 08:01:03 +04:00
|
|
|
$ git init --bare gitrepo2
|
2012-09-14 04:49:42 +04:00
|
|
|
Initialized empty Git repository in $TESTTMP/gitrepo2/
|
2012-09-10 08:26:43 +04:00
|
|
|
|
2012-09-14 04:49:45 +04:00
|
|
|
$ hg clone gitrepo hgrepo | grep -v '^updating'
|
2012-09-10 08:26:43 +04:00
|
|
|
importing git objects into hg
|
|
|
|
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
|
|
$ cd hgrepo
|
|
|
|
$ hg log -r tip --template 'files: {files}\n'
|
|
|
|
files:
|
2014-02-27 02:19:24 +04:00
|
|
|
$ hg gverify
|
2014-12-03 01:17:09 +03:00
|
|
|
verifying rev 01708ca54a8f against git commit 678256865a8c85ae925bf834369264193c88f8de
|
2012-09-10 08:26:43 +04:00
|
|
|
|
|
|
|
$ hg gclear
|
|
|
|
clearing out the git cache data
|
2012-09-14 04:49:45 +04:00
|
|
|
$ hg push ../gitrepo2
|
|
|
|
pushing to ../gitrepo2
|
2012-10-08 04:11:27 +04:00
|
|
|
searching for changes
|
2013-01-06 10:46:57 +04:00
|
|
|
adding objects
|
|
|
|
added 1 commits with 1 trees and 0 blobs
|
2012-11-04 03:12:08 +04:00
|
|
|
$ cd ..
|
|
|
|
$ git --git-dir=gitrepo2 log --pretty=medium
|
2012-09-10 08:26:43 +04:00
|
|
|
commit 678256865a8c85ae925bf834369264193c88f8de
|
|
|
|
Author: test <test@example.org>
|
|
|
|
Date: Mon Jan 1 00:00:00 2007 +0000
|
|
|
|
|
|
|
|
empty
|