changeset 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 768639283275
children aef84769fe27
files tests/test_util.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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, '/')