# HG changeset patch # User Anton Shestakov # Date 1549891982 -28800 # Node ID 3722557b008cc153e095afeaf3f48256e1d5f300 # Parent d2c1e6d61658ac809aae6335489f5bd8e4e8c919 obshistory: omit keyword arguments with default values in patch.diffui() calls d4c9eebdd72d made that function not take "relroot" and "prefix" anymore, and instead expect "pathfn". These two chunks of code in this patch simply generate patches for obslog -p and they broke because they tried to provide default values for "prefix" and "relroot" for no apparent reason (and also for "changes"). Let's instead rely on defaults of patch.diffui(). diff -r d2c1e6d61658 -r 3722557b008c hgext3rd/evolve/obshistory.py --- a/hgext3rd/evolve/obshistory.py Fri Feb 08 10:21:09 2019 +0100 +++ b/hgext3rd/evolve/obshistory.py Mon Feb 11 21:33:02 2019 +0800 @@ -601,8 +601,7 @@ matchfn = scmutil.matchall(repo) firstline = True for chunk, label in patch.diffui(repo, node, succ, matchfn, - changes=None, opts=diffopts, - prefix='', relroot=''): + opts=diffopts): if firstline: fm.plain('\n') firstline = False @@ -738,8 +737,7 @@ matchfn = scmutil.matchall(repo) firstline = True for chunk, label in patch.diffui(repo, node, succ, matchfn, - changes=None, opts=diffopts, - prefix='', relroot=''): + opts=diffopts): if firstline: fm.plain('\n') firstline = False