Skip to content

Pull ReRequest: Fix for "Cloning HG repo to Git creates "uncheck-out-able" repositories". And upgrade for filenames transcoding #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 83 commits into from

Conversation

IngeniousOne
Copy link
Owner

Hi! I've got a pull request to felipec repo felipec#79, but it hungs there for a few months with no action.
Can you please check it and use in your fork?

mnauw added 30 commits August 1, 2016 12:21
... rather than only adding remote ones locally and never deleting.
In particular, makes fetch --prune work.

Fixes felipec#15
Also prevent errors when trying to push no changesets to a peer, which some
combinations of versions and extensions do not handle well;
see e.g. as in felipec#32 and felipec#22
Push capability is used depending on remote-hg.capability-push setting and ...
* handles dry-run properly,
* passes copy and rename information onto Mercurial

Fixes felipec#61
Also remove some superfluous function parameters and add another one
to avoid using global var.
... as configured by remote-hg.push-updates-notes setting.
... at least in the sane capability_push mode.
Remove documentation on obsolete push-updates-notes setting.
... as the old mode is not so safe and on its way to deprecation.
novalis and others added 28 commits April 21, 2017 16:47
If you have a repository with multiple independent histories (perhaps
that get merged later), under some circumstances revision 0 can get
imported *after* some other revision.  "Independent histories" are those
that start from different zero-parent commits.  I have thus far failed to
get a local reproduction on this, in part because I don't understand
how git-remote-hg choses the order in which to import branches.  But
we did notice this in our production system.

If revision 0 is imported late, a reset would not be issued, and it would
be wrongly re-parented on top of whatever previous history existed, instead
of being a root-level commit.

Fix this by always issuing a reset for a parentless commit, even on
revision 0.
Based on reproduction steps provided by Adam Bliss.
... in particular when these would otherwise map to unsupported refnames.

Fixes #10
... to align it with current git's more restricted behavior
... now in a separate module as of 55e8efa2451a0999b56978e471dc31dc8066a0fb
... as modified in cd23423029287e299d65bbece497ff09a2a673f4
... as modified in 38f4805020437f126f5c1c8f41d78445f9ab6547

Fixes #16
... to ensure setup.py does not trip some later time.

Fixes #25
If new heads are created on a remote http repo after we pull but
before we request branch heads, we'll try to read a head that we don't
actually have locally.  To fix this, we request the branchmap before
fetching, and only fetch the heads that we just learned about.
@IngeniousOne
Copy link
Owner Author

wrong direction...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants