hg-git with git pull request

Nathan Goldbaum nathan12343 at gmail.com
Wed Apr 19 16:26:46 UTC 2017


This seems to work:

hg clone git://github.com/QuantStack/xtensor.git
cd xtensor/.hg/git
git fetch https://github.com/QuantStack/xtensor
<https://github.com/QuantStack/xtensor.git> pull/269/head:dynamic_view
cd ../../
hg gimport
hg update dynamic_view

On Wed, Apr 19, 2017 at 10:55 AM, Neal Becker <ndbecker2 at gmail.com> wrote:

> 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.
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20170419/052a9961/attachment-0002.html>


More information about the Mercurial mailing list