This fix avoids the exception while making a error message caused by the parameter
'c' is None when we start first exporting onto non empty git repo,
'c' should be checked like 'sha1'.
Output before fix:
$ sh /c/develop/fast-export/hg-fast-export.sh -r ../../hgrepo/TaiyoLaser-hg -e cp932 --fe cp932 -M main
Traceback (most recent call last):
File "/c/develop/fast-export/hg-fast-export.py", line 729, in <module>
sys.exit(hg2git(options.repourl,m,options.marksfile,options.mappingfile,
File "/c/develop/fast-export/hg-fast-export.py", line 548, in hg2git
if not verify_heads(ui,repo,heads_cache,force,ignore_unnamed_heads,branchesmap):
File "/c/develop/fast-export/hg-fast-export.py", line 504, in verify_heads
b'Error: Branch [%s] modified outside hg-fast-export:'
TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'NoneType'
fast-import statistics:
...
This fix avoids the exception while making a error message caused by the parameter 'c' is None when we start first exporting onto non empty git repo, 'c' should be checked like 'sha1'.
Output before fix:
Output after fix: