Patchwork [2,of,8] revert: pass operation to crecord

login
register
mail settings
Submitter Jun Wu
Date Nov. 23, 2016, 11:24 p.m.
Message ID <d4c7651935165820d8bf.1479943477@x1c>
Download mbox | patch
Permalink /patch/17734/
State Accepted
Headers show

Comments

Jun Wu - Nov. 23, 2016, 11:24 p.m.
# HG changeset patch
# User Jun Wu <quark@fb.com>
# Date 1479927804 0
#      Wed Nov 23 19:03:24 2016 +0000
# Node ID d4c7651935165820d8bfe363c8cae95e0192af1f
# Parent  c1aa248a8bc0fac647a1f849ed25c31291edce64
# Available At https://bitbucket.org/quark-zju/hg-draft
#              hg pull https://bitbucket.org/quark-zju/hg-draft -r d4c765193516
revert: pass operation to crecord

So crecord would know what to display

Patch

diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -85,5 +85,5 @@  def filterchunks(ui, originalhunks, usec
             recordfn = crecordmod.chunkselector
 
-        return crecordmod.filterpatch(ui, originalhunks, recordfn)
+        return crecordmod.filterpatch(ui, originalhunks, recordfn, operation)
 
     else: