[python-committers] Re: getting old branches/releases
On Feb 11, 2020, at 19:26, Ethan Furman wrote: > On 02/11/2020 04:04 PM, Mariatta wrote: >> On Tue, Feb 11, 2020 at 3:49 PM Ethan Furman wrote: > >>> I'm trying to get the 3.3 and 3.4 branches so I can check my libraries' >>> compatibility with older versions, but I do not see those branches as being >>> available: >>> How can I get those? >> 3.3 and 3.4 existed before the migration from GitHub, so we don't have the >> branches. >> They are in the repo as git tags. >> Try: >> # list all git tags matching v.3.3 >> git tag -l 'v3.3*' >> # checkout the v.3.3.0 tag to a local branch >> git checkout tags/v.3.3.0 -b my-own-3.3.0-branch > > Nice! Many thanks! It's a bit simpler than that. You don't need to specify `tags/` when referencing tags. git checkout v3.3.7 # for final 3.3 release (in detached HEAD mode) git checkout v3.3.7 -b v3.3.7 # to also create a local branch git checkout 3.3 -b 3.3 # for the final state of the 3.3 branch https://git-scm.com/book/en/v2/Git-Basics-Tagging -- Ned Deily n...@python.org -- [] ___ python-committers mailing list -- python-committers@python.org To unsubscribe send an email to python-committers-le...@python.org https://mail.python.org/mailman3/lists/python-committers.python.org/ Message archived at https://mail.python.org/archives/list/python-committers@python.org/message/SJJ6JQNNK3ARPUWYF45POSTIR5OJH7TI/ Code of Conduct: https://www.python.org/psf/codeofconduct/
[python-committers] Re: getting old branches/releases
>> I'm trying to get the 3.3 and 3.4 branches so I can check my libraries >> compatibility with older versions, but I do not see those branches as being >> available: >> >> How can I get those? >> >> > > > 3.3 and 3.4 existed before the migration from GitHub, so we don't have the > branches. > > They are in the repo as git tags. > > Try: > > # list all git tags matching v.3.3 > git tag -l 'v3.3*' > > # checkout the v.3.3.0 tag to a local branch > git checkout tags/v.3.3.0 -b my-own-3.3.0-branch I remember a few years ago the older Git branches were changed to tags, to get rid of them from Git Hub's list of branches I think. Maybe these tags are what you are after (note there is no v prefix): $ git ls-remote git://github.com/python/cpython [thousands of PR branches etc skipped] 4dea2538537ba8ef14e4296217abcd7a45cb25cerefs/tags/3.3 bf9cccb2b54ad2c641ea78435a8618a6d251491erefs/tags/3.3^{} 6bedc750c2d3ca75671c3a6b261592455e0f5850refs/tags/3.4 05c28b08f6e2fc8782472b026c98a3fdd61a2ba9refs/tags/3.4^{} ___ python-committers mailing list -- python-committers@python.org To unsubscribe send an email to python-committers-le...@python.org https://mail.python.org/mailman3/lists/python-committers.python.org/ Message archived at https://mail.python.org/archives/list/python-committers@python.org/message/RAHJKSEJT4B5VVLNCOMYHZFB574XTAUS/ Code of Conduct: https://www.python.org/psf/codeofconduct/
[python-committers] Re: getting old branches/releases
Great! Perhaps we should have this info in devguide. https://github.com/python/devguide/issues/572 Welcoming PR. ___ python-committers mailing list -- python-committers@python.org To unsubscribe send an email to python-committers-le...@python.org https://mail.python.org/mailman3/lists/python-committers.python.org/ Message archived at https://mail.python.org/archives/list/python-committers@python.org/message/IPRJVG2USHVP4QUK4RZKJK4UMNTZRKQN/ Code of Conduct: https://www.python.org/psf/codeofconduct/
[python-committers] Re: getting old branches/releases
On 02/11/2020 04:04 PM, Mariatta wrote: On Tue, Feb 11, 2020 at 3:49 PM Ethan Furman wrote: I'm trying to get the 3.3 and 3.4 branches so I can check my libraries' compatibility with older versions, but I do not see those branches as being available: How can I get those? 3.3 and 3.4 existed before the migration from GitHub, so we don't have the branches. They are in the repo as git tags. Try: # list all git tags matching v.3.3 git tag -l 'v3.3*' # checkout the v.3.3.0 tag to a local branch git checkout tags/v.3.3.0 -b my-own-3.3.0-branch Nice! Many thanks! -- ~Ethan~ ___ python-committers mailing list -- python-committers@python.org To unsubscribe send an email to python-committers-le...@python.org https://mail.python.org/mailman3/lists/python-committers.python.org/ Message archived at https://mail.python.org/archives/list/python-committers@python.org/message/74EFB7W6AVOPSE2DMNNJ2ZZEIZ5G2RS5/ Code of Conduct: https://www.python.org/psf/codeofconduct/
[python-committers] Re: getting old branches/releases
On Tue, Feb 11, 2020 at 3:49 PM Ethan Furman wrote: > > I'm trying to get the 3.3 and 3.4 branches so I can check my libraries > compatibility with older versions, but I do not see those branches as being > available: > > How can I get those? > > > 3.3 and 3.4 existed before the migration from GitHub, so we don't have the branches. They are in the repo as git tags. Try: # list all git tags matching v.3.3 git tag -l 'v3.3*' # checkout the v.3.3.0 tag to a local branch git checkout tags/v.3.3.0 -b my-own-3.3.0-branch ___ python-committers mailing list -- python-committers@python.org To unsubscribe send an email to python-committers-le...@python.org https://mail.python.org/mailman3/lists/python-committers.python.org/ Message archived at https://mail.python.org/archives/list/python-committers@python.org/message/6TF7LBUDYGDCSU3QA5PLGARATIYQYUY3/ Code of Conduct: https://www.python.org/psf/codeofconduct/