# HG changeset patch
# User Yuya Nishihara <y...@tcha.org>
# Date 1269870507 -32400
# Branch stable
# Node ID 30d7ee5559aa4c94220e4e338284a12a00ac77d4
# Parent  1e6113192023422d25997edeab8e38998388bfda
status: don't show clean files by default if directory path is specified

Current implementation was introduced at 889dbb205687, which seems
to intend to show the specified files even if they're clean at all.

But it's messy for directories, e.g. `hgtk status subdir'.

diff --git a/tortoisehg/hgtk/status.py b/tortoisehg/hgtk/status.py
--- a/tortoisehg/hgtk/status.py
+++ b/tortoisehg/hgtk/status.py
@@ -1736,7 +1736,7 @@ class GStatus(gdialog.GWindow):
         return False
 
 def run(ui, *pats, **opts):
-    showclean = pats and True or False
+    showclean = util.any(os.path.isfile(e) for e in pats)
     rev = opts.get('rev', [])
     cmdoptions = {
         'all':False, 'clean':showclean, 'ignored':False, 'modified':True,

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to