git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC PATCH] git-p4: add option to store files in Git LFS on import

From
Luke Diamand <luke@diamand.org>
Date
Sep 3, 2015, 10:07 UTC
Message-ID
<CAE5ih79Zjg7Rk0OQ0VkTc+KGJ26dEk_iyOWWhT2qSGePRTDqog@mail.gmail.com>
In-Reply-To
<1D65DD68-EE3F-4C87-9B5F-E436BA13704E@gmail.com>
Show 9 quoted lines
>>>
>>> Regarding Python 3:
>>> Would you drop Python 2 support or do you want to support Python 2/3 in parallel? I would prefer the former…
>>
>> For quite some time we would need to support both; we can't just have
>> a release of git that one day breaks git-p4 for people stuck on Python
>> 2. But it might not be that hard to support both (though converting
>> all those print statements could be quite tiresome).
> Agreed. However supporting both versions increases code complexity as well as testing effort. Would a compromise like the following work? We fork “git-p4.py” to “git-p4-python2.py” and just apply important bug fixes to that file. All new development happens on a Python 3 only git-p4.py.

I'm not a python expert, but I think we're quite a way from that point anyway. I think we'd want to run 2to3 on it and make it work - at that point it should work on both python 2.7 (and earlier? I don't know) and python 3.x. By the time that's done, we may well find that we _can_ just drop python2 support, or fork, as you suggest.

Running 2to3 also includes adding test cases for all the code that is in there that's not currently covered so that end-users don't find out the hard way that we've missed bits. That's why I think it's a fairly long-term goal.

Regardless, I think we'd want to have a wider discussion about the best way forward, and there doesn't seem much point having that discussion now when there's no actual code!

Previous: Lars SchneiderNext: John Keeping
Message 8 of 9 in “git-p4: add option to store files in Git LFS on import”
  1. git-p4: add option to store files in Git LFS on importlarsxschneider@gmail.com, Aug 28, 2015
  2. git-p4: add option to store files in Git LFS on importlarsxschneider@gmail.com, Aug 28, 2015
  3. Luke DiamandAug 30, 2015
  4. Luke DiamandAug 30, 2015
  5. Lars SchneiderAug 30, 2015
  6. Luke DiamandAug 30, 2015
  7. Lars SchneiderSep 3, 2015
  8. Luke DiamandSep 3, 2015
  9. John KeepingSep 3, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.