# HG changeset patch # User Jun Wu # Date 1503620718 25200 # Node ID 27ff2a87d8c0a686fd05ed55f6ff1801bc2580eb # Parent 07ffff841863667469ac992c50adf24e7ad6ee82 phabsend: detect patch change with larger context Previously phabsend has an optimization that will skip uploading a diff if the patch (with context line number = 1) remains unchanged. That could be confusing: Aug 24 15:52:28 phillco: something is wrong with phabricator'your patches/ Aug 24 15:52:45 ... with phabricator's view of your patches again Aug 24 15:53:38 if i phabread D388 and then D399, i get a version of filemerge.py with "a, b, c" somewhere on line 344, which is not what phabricator shows for D399 Aug 24 15:53:51 junw: maybe that's more for you ^ Fix that by checking context with 32767 lines, which is the same as what will be actually sent. Differential Revision: https://phab.mercurial-scm.org/D512 diff -r 07ffff841863 -r 27ff2a87d8c0 contrib/phabricator.py --- a/contrib/phabricator.py Thu Aug 24 16:52:28 2017 -0700 +++ b/contrib/phabricator.py Thu Aug 24 17:25:18 2017 -0700 @@ -274,7 +274,7 @@ """ repo = ctx.repo() if oldnode: - diffopts = mdiff.diffopts(git=True, context=1) + diffopts = mdiff.diffopts(git=True, context=32767) oldctx = repo.unfiltered()[oldnode] neednewdiff = (getdiff(ctx, diffopts) != getdiff(oldctx, diffopts)) else: