git-hg plugin: hg imports in parts git imports in one commit
Uwe Brauer
oub at mat.ucm.es
Sat Sep 17 09:00:07 UTC 2016
Hi
This is a bit different topic, but I would like to know whether the
observed behavior is to be expected.
I create a small git-repo (script attached)
I clone it via: hg clone git-repo hg-repo
in hg-repo I add a new bookmark and some commits (script attached)
I export a patch of corresponding to the bookmark/branch via Steve's
recommendation
hg export -g -r "only(pretty,master)" -o mypatch.patch
I import that patch into the git repo via
git am --patch-format=hg mypatch.patch
Now git log --graph gives me
* commit 36d22cdb51e6c8cc3395347d53756392ad311e2a
| Author: Uwe Brauer <oub at mat.ucm.es>
| Date: Sat Sep 17 08:17:35 2016 +0000
|
| pretty1
|
So the patch is considered as 1 commit not as three.
Just in case I repeat step one+two
I create a small git-repo (script attached)
I clone it via: hg clone git-repo2 hg-repo2
And apply the patch in hg-repo2. As expected
hg log -G
Shows three commits.
Is there anything I miss?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: create-repo-git.sh
Type: text/x-sh
Size: 213 bytes
Desc: not available
URL: <http://www.mercurial-scm.org/pipermail/mercurial/attachments/20160917/21fcb5c5/attachment.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: create-bookmarks-hg.sh
Type: text/x-sh
Size: 212 bytes
Desc: not available
URL: <http://www.mercurial-scm.org/pipermail/mercurial/attachments/20160917/21fcb5c5/attachment-0001.sh>
More information about the Mercurial
mailing list