| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |/
| |
| |
| |
| |
| | |
Rule #7 of git-check-ref-format states "7. They cannot end with a dot
'.'." which was not yet implemented in fast-export. This commit fixes
this.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
This reverts commit e9fa76b47d45aa5a10aca4cc882556b0c525461b.
|
| |
| |
| |
| | |
This reverts commit 25387e26be7ab51523ebda7e2ad50bba325a7637.
|
| |
| |
| |
| | |
This reverts commit 9f3c019a7b375933d669950c46ac02e94b08737c.
|
| | |
|
| |
| |
| |
| | |
https://github.com/offbytwo/git-hg/tree/b3d5dc0dd3
|
|\ \
| |/ |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
This fixes a problem where a repository is imported incorrectly when there is a merge
between two branches with no common history.
|
|\ \ |
|
| |\ \
| | |/ |
|
| | |
| | |
| | |
| | | |
is of the form 'name <>'.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
remove unneeded mkdir.
migrate some installation into dh_install script.
be more .PHONY.
|
| | | |
|
|\ \ \
| |/ / |
|
| | | |
|
| |/ |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| | |
Previously, git-fast-import could fail, and exit with a non-zero status.
But the exit status of hg-fast-export.sh would not reflect this.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
https://github.com/barak/git-hg/blob/7f17439b3cb07da766c0c5ebea8ff5aeea560402/bin/git-hg
Signed-off-by: Andrey Rahmatullin <wrar@wrar.name>
|
| |
| |
| |
| | |
Signed-off-by: Andrey Rahmatullin <wrar@wrar.name>
|
| |
| |
| |
| | |
Signed-off-by: Andrey Rahmatullin <wrar@wrar.name>
|
| |
| |
| |
| | |
Signed-off-by: Andrey Rahmatullin <wrar@wrar.name>
|
| |
| |
| |
| | |
Signed-off-by: Andrey Rahmatullin <wrar@wrar.name>
|
|/
|
|
| |
Signed-off-by: Andrey Rahmatullin <wrar@wrar.name>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Signed-off-by: Frej Drejhammar <frej.drejhammar@gmail.com>
Reported-by: Cole Robinson <crobinso@redhat.com>
Thank's to Cole Robinson for reporting the bug and providing a fix
which was adapted to this patch.
The original bug report:
I was recently converting a few mercurial repositories to git, and
noticed certain commits had their date reset to Jan 1 1970.
An example repo:
http://hg.fedorahosted.org/hg/virt-manager
An example commit:
http://hg.fedorahosted.org/hg/virt-manager/rev/41182500ddef
After some poking, it seems the culprit was that the "author:" was
surrounded by quotation marks
|
|
|
|
| |
Particularly if the repo has hundreds of branches.
|
|
|
|
|
|
|
|
|
|
| |
The previous code did an awful lot of work to infer the parents of an
exported commit, incorporating information from many sources. But
there were multiple bugs in this scheme, sometimes resulting in merge
commits with two parents pointing to the same commit object.
Instead, use a much more straightforward process of mapping the
parents stored in hg.
|
|
|
|
| |
Signed-off-by: Rocco Rutte <pdmef@gmx.net>
|
|
|
|
| |
Signed-off-by: Rocco Rutte <pdmef@gmx.net>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
hg-fast-export uses hg's branch order (from the log) when merging,
this is a problem. Consider the case:
HG repo A has revisions 1-10. Repository B is cloned from that.
Subsequently, A adds revision 11, and B adds a different change which
also has revision 11. If B now pulls from A, A's rev11 will have the
number 12; if A then pulls from B, the reverse also holds. So the logs
are different even though they contain the exact same changes.
hg-fast-export will thus create different git repositories for A and B,
even though the contents are identical for all practical purposes.
In particular, the repos would be identical if A and B had used git from
the beginning.
To fix that, compare HG revisions instead of log positions.
|
|
|
|
|
|
|
|
|
| |
Previously we fed the full revision only for the first one and deltas
for all following including branches being forked off. This doesn't work
with branches that are forked from revision 0. In case such a branch is
found, we now also feed the full revision.
Signed-off-by: Rocco Rutte <pdmef@gmx.net>
|
|
|
|
| |
Signed-off-by: Frej Drejhammar <frej.drejhammar@gmail.com>
|
|
|
|
| |
Signed-off-by: Rocco Rutte <pdmef@gmx.net>
|
|\
| |
| |
| |
| | |
Conflicts:
hg-fast-export.py
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
HG tag movement is now supported with this patch.
This patch creates a .git/hg2git-mapping file, which maps
HG revision numbers to HG hashes. Combined with the
.git/hg2git-marks file, which maps HG revisions to GIT hashes,
we can now reprocess all tags at the end of each hg export
operation.
|
| |
| |
| |
| |
| |
| |
| | |
Add -o, --origin <name> to allow user to set a namespace used
when importing remote branches.
Signed-off-by: Fabrizio Chiarello <ponch@autistici.org>
|
|/
|
|
| |
Signed-off-by: Rocco Rutte <pdmef@gmx.net>
|
|
|
|
|
|
|
| |
Add -M, --default-branch <branch_name> to allow user to set
the default branch where to pull into
Signed-off-by: Fabrizio Chiarello <ponch@autistici.org>
|