Hervé Beraud <herveberaud.pro@xxxxxxxxx> writes: > --- Thanks for posting, but this is way under-justified, even for something in contrib/ area. Are all changes in this patch necessary to "make it compatible with both Python 2 and 3", or are some parts do not contribute directly to the objective but are good changes to suit your personal taste, match BCP styles, etc.? I am guessing it is the latter (e.g. with Python 3, you cannot use print without invoking it as a function, but os.system() can still accept a literal command line string, so introducing variable "rm_f" that gets assigned a literal string only once to pass it to os.system() does not have anything to do with the Python2to3 transition), and if that is the case, it makes sense to split this into at least 2 patches, i.e. prelimiary clean-up, followed by changes required to run it with Python3. It also is OK to make it a 3-patch series, in which case you would limit the preliminary clean-up to minimum uncontroversial changes and follow up with an optional update to suit personal taste at the very end. Also, the submission needs to be signed-off for us to be able to use. Please see Documentation/SubmittingPatches for details. Thanks. > contrib/hg-to-git/hg-to-git.py | 140 ++++++++++++++++++++++++----------------- > 1 file changed, 83 insertions(+), 57 deletions(-) > > diff --git a/contrib/hg-to-git/hg-to-git.py b/contrib/hg-to-git/hg-to-git.py > ... > os.system('git ls-files -x .hg --others | git update-index --add --stdin') > # delete removed files > - os.system('git ls-files -x .hg --deleted | git update-index --remove --stdin') > + rm_f = 'git ls-files -x .hg --deleted | git update-index --remove --stdin' > + os.system(rm_f) > ... > @@ -247,7 +273,7 @@ def getgitenv(user, date): > # write the state for incrementals > if state: > if verbose: > - print 'Writing state' > + print('Writing state') > f = open(state, 'w') > pickle.dump(hgvers, f) > > > -- > https://github.com/git/git/pull/458