Patchwork [1,of,2] fileset: turn on listclean conditionally

login
register
mail settings
Submitter Yuya Nishihara
Date Aug. 6, 2018, 1:51 p.m.
Message ID <cd4c0681c2a56a79aaa1.1533563465@mimosa>
Download mbox | patch
Permalink /patch/33330/
State New
Headers show

Comments

Yuya Nishihara - Aug. 6, 2018, 1:51 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1532227752 -32400
#      Sun Jul 22 11:49:12 2018 +0900
# Node ID cd4c0681c2a56a79aaa19d5ba48647e47b6e1161
# Parent  49b51f41fb46d497487ee2211b88387230f504b8
fileset: turn on listclean conditionally

This is just a micro optimization.

Patch

diff --git a/mercurial/fileset.py b/mercurial/fileset.py
--- a/mercurial/fileset.py
+++ b/mercurial/fileset.py
@@ -486,7 +486,7 @@  class matchctx(object):
     def _buildstatus(self, keys):
         self._status = self._basectx.status(self.ctx, self._match,
                                             listignored='ignored' in keys,
-                                            listclean=True,
+                                            listclean='clean' in keys,
                                             listunknown='unknown' in keys)
 
     def status(self):