hg-git with git pull request

Neal Becker ndbecker2 at gmail.com
Wed Apr 19 15:55:55 UTC 2017


Nathan Goldbaum wrote:

> You should be able to do "hg clone
> git://github.com/QuantStack/xtensor.git".
> 
> On Wed, Apr 19, 2017 at 10:48 AM, Neal Becker <ndbecker2 at gmail.com> wrote:
> 
>> I'm maintaining a local copy of a github repo, to which I've locally
>> added a
>> PR.  So I create this by:
>>
>> git clone https://github.com/QuantStack/xtensor.git
>> git fetch origin pull/269/head:dynamic_view
>>
>> Now I can hg clone this local repo.
>>
>> But can I create the hg copy directly from github, without the extra step
>> of
>> cloning the git local copy and then adding the PR?
>>
>> I hope I'm making sense, I don't know much about git or github.
>>
>> _______________________________________________
>> Mercurial mailing list
>> Mercurial at mercurial-scm.org
>> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>>

If all I do is
git clone https://github.com/QuantStack/xtensor.git

Then 
hg clone xtensor xtensor.hg

I don't see the PR (dynamic_view) in the hg clone.
I seem to need to do:
git fetch origin pull/269/head:dynamic_view

And I don't know a way to do this directly with hg.





More information about the Mercurial mailing list