Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1265115
Summary: | Git fails to export to hg repo from which it was cloned | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dr I J Ormshaw <ian_ormshaw> | ||||||
Component: | git-remote-hg | Assignee: | Petr Stodulka <pstodulk> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 22 | CC: | ndbecker2, ooprala, pstodulk | ||||||
Target Milestone: | --- | Keywords: | Patch | ||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | git-remote-hg-0.2-7.fc23 git-remote-hg-0.2-6.fc22 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2016-01-02 22:22:29 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Dr I J Ormshaw
2015-09-22 07:38:37 UTC
Created attachment 1094828 [details]
input for git-remote-hg
So from my investigation not sure yet if it is bug for git-remote-hg or mercurial itself - it is likelier 2nd option.
Inside git-remote-hg is important line 865, where is created object ctx (class memctx in context). Input seems OK and in ctx._data should be stored some string. However there is bool False - that's whole problem. I can't debug creation of object step by step due to troubles/exceptions(? don't remember result now) inside, but you can try "next" sucessfully and check created object.
For easier testing added attachment which contains example, what is awaited on stdin of git-remote-hg - otherwise you will need modify script /usr/bin/git-remote-hg to get some usefull information, if you use just git.
run git-remote-hg from git repository (see reproducer above) like:
$ GIT_DIR=.git git-remote-hg 'hg::../hg.repo' '../hg.repo'
My next idea / plans:
- check how mercurial creates this object / commits
- check upstream for changes (yeah, I haven't checked this yet)
I will be glad for help with investigation due to time deficit.
P.S. in attachment missing some empty lines on the EOF, just add it to you file or push enter few times (>= 1) Add Neal to CC list as mercurial maintainer. P.P.S - If you go through actual traceback, probably you solved the problem. For complete push directly with git-remote-hg you will need do some another steps, but you can try again just: $ git push hg::../hg.repo to see the result. Created attachment 1099700 [details]
patch
Mercurial changed API and context.memfilectx requires new parameter "repo" as first. Thanks Tomas Tomecek for help.
git-remote-hg-0.2-6.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-b59ee5851b git-remote-hg-0.2-6.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update git-remote-hg' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-b59ee5851b git-remote-hg-0.2-7.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update git-remote-hg' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-45c6241f40 git-remote-hg-0.2-7.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report. git-remote-hg-0.2-6.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. |