diff tests/test_util.py @ 772:f3af4fe98d37

test_util: make manifest filter use shared list of files to ignore
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Tue, 30 Nov 2010 02:54:11 +0100
parents bc5c176b63eb
children e698be84c22d
line wrap: on
line diff
--- a/tests/test_util.py
+++ b/tests/test_util.py
@@ -23,6 +23,7 @@ from mercurial import hg
 from mercurial import i18n
 from mercurial import node
 from mercurial import ui
+from mercurial import util
 from mercurial import extensions
 
 try:
@@ -137,8 +138,7 @@ def requiresoption(option):
     return decorator
 
 def filtermanifest(manifest):
-    return filter(lambda x: x not in ('.hgtags', '.hgsvnexternals', ),
-                  manifest)
+    return [f for f in manifest if f not in util.ignoredfiles]
 
 def fileurl(path):
     path = os.path.abspath(path).replace(os.sep, '/')