Patchwork D512: phabsend: detect patch change with larger context

login
register
mail settings
Submitter phabricator
Date Aug. 28, 2017, 7:05 p.m.
Message ID <8ba554bb54c124b9024f0d1d9eb126e9@localhost.localdomain>
Download mbox | patch
Permalink /patch/23434/
State Not Applicable
Headers show

Comments

phabricator - Aug. 28, 2017, 7:05 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG27ff2a87d8c0: phabsend: detect patch change with larger context (authored by quark).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D512?vs=1269&id=1361

REVISION DETAIL
  https://phab.mercurial-scm.org/D512

AFFECTED FILES
  contrib/phabricator.py

CHANGE DETAILS




To: quark, #hg-reviewers, indygreg, durin42
Cc: mercurial-devel

Patch

diff --git a/contrib/phabricator.py b/contrib/phabricator.py
--- a/contrib/phabricator.py
+++ b/contrib/phabricator.py
@@ -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: