diff mercurial/match.py @ 16791:977c80123835

merge with stable
author Matt Mackall <mpm@selenic.com>
date Wed, 30 May 2012 14:21:58 -0500
parents e34106fa0dc3 c17ce7cd5090
children 8d08a28aa63e
line wrap: on
line diff
--- a/mercurial/match.py	Wed May 16 13:45:46 2012 -0700
+++ b/mercurial/match.py	Wed May 30 14:21:58 2012 -0500
@@ -62,7 +62,10 @@
             pats = _normalize(exclude, 'glob', root, cwd, auditor)
             self.excludepat, em = _buildmatch(ctx, pats, '(?:/|$)')
         if exact:
-            self._files = patterns
+            if isinstance(patterns, list):
+                self._files = patterns
+            else:
+                self._files = list(patterns)
             pm = self.exact
         elif patterns:
             pats = _normalize(patterns, default, root, cwd, auditor)