1. William Headrick
  2. thg

Commits

Steve Borho  committed 51697d1

status: remove util.any() reference; requires hg >= 1.5

This will not be merged to the default branch; since default requires
Mercurial 1.5

  • Participants
  • Parent commits 62b90c0
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgtk/status.py

View file
         return False
 
 def run(ui, *pats, **opts):
-    showclean = util.any(os.path.isfile(e) for e in pats)
+    # When hg-1.4 support is dropped, use util.any
+    #showclean = util.any(os.path.isfile(e) for e in pats)
+    showclean = False
+    for e in pats:
+        if os.path.isfile(e):
+            showclean = True
+            break
     rev = opts.get('rev', [])
     cmdoptions = {
         'all':False, 'clean':showclean, 'ignored':False, 'modified':True,