Testing forked branches

14 views
Skip to first unread message

Drew Shotwell

unread,
Apr 8, 2023, 7:24:52 PM4/8/23
to sage-support
I'm looking into working on an issue in git, and I'm wondering how to properly go about testing someone else's branch. Let's take for instance https://github.com/sagemath/sage/pull/35414. Essentially what I want to do is get the code changes from the forked branch videlec:complex-root-of-to-algebraic into my repository so I can test them in parallel with the develop branch. My own research has opened an overwhelming number of different ways for doing this, so I figured I'd ask here to get the most straight forward answer. Thank you.

Dima Pasechnik

unread,
Apr 8, 2023, 8:14:48 PM4/8/23
to sage-support


On Sat, 8 Apr 2023, 20:24 Drew Shotwell, <drewsh...@gmail.com> wrote:
I'm looking into working on an issue in git, and I'm wondering how to properly go about testing someone else's branch. Let's take for instance https://github.com/sagemath/sage/pull/35414.

suppose you have remote foo set to

then

git fetch foo pull/35414/head:pr35414

will create the branch named pr35414 you want


Essentially what I want to do is get the code changes from the forked branch videlec:complex-root-of-to-algebraic into my repository so I can test them in parallel with the develop branch. My own research has opened an overwhelming number of different ways for doing this, so I figured I'd ask here to get the most straight forward answer. Thank you.

--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/5b523d54-3211-4caa-9570-8458bf1dbaa2n%40googlegroups.com.

G. M.-S.

unread,
Apr 8, 2023, 8:23:06 PM4/8/23
to sage-s...@googlegroups.com

Thanks Dima and Drew.

I had the very same question, but zero ways for doing it, so I did not dare ask…

Guillermo

John H Palmieri

unread,
Apr 9, 2023, 3:38:45 AM4/9/23
to sage-support
I have found the instructions at https://github.com/sagemath/trac-to-github/blob/master/docs/Migration-Trac-to-Github.md useful for me, as someone used to the old trac interface.

Dima Pasechnik

unread,
Apr 9, 2023, 9:00:21 AM4/9/23
to sage-s...@googlegroups.com
another option is to use gh tool from GitHub.

gh pr checkout 35414

would do the same as

git fetch foo pull/35414/head:pr35414 && git checkout pr35414
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/04a58ebe-6365-4439-904a-2f8827dd2a47n%40googlegroups.com.

G. M.-S.

unread,
Apr 9, 2023, 10:22:09 AM4/9/23
to sage-s...@googlegroups.com

You are right, John.  I did not read it carefully enough.

Guillermo
Reply all
Reply to author
Forward
0 new messages