Mercurial > public > mercurial-scm > hg-stable
diff tests/test-manifest.py @ 41687:0531dff73d0b
match: delete unused root and cwd arguments from {always,never,exact}() (API)
Differential Revision: https://phab.mercurial-scm.org/D5930
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sat, 09 Feb 2019 22:50:53 -0800 |
parents | 0dc3ed4e712c |
children | 2372284d9457 |
line wrap: on
line diff
--- a/tests/test-manifest.py Sun Feb 10 14:35:36 2019 -0800 +++ b/tests/test-manifest.py Sat Feb 09 22:50:53 2019 -0800 @@ -289,8 +289,7 @@ the resulting manifest.''' m = self.parsemanifest(A_HUGE_MANIFEST) - match = matchmod.exact(b'/', b'', - [b'file1', b'file200', b'file300']) + match = matchmod.exact([b'file1', b'file200', b'file300']) m2 = m.matches(match) w = (b'file1\0%sx\n' @@ -304,9 +303,8 @@ ''' m = self.parsemanifest(A_DEEPER_MANIFEST) - match = matchmod.exact(b'/', b'', - [b'a/b/c/bar.txt', b'a/b/d/qux.py', - b'readme.txt', b'nonexistent']) + match = matchmod.exact([b'a/b/c/bar.txt', b'a/b/d/qux.py', + b'readme.txt', b'nonexistent']) m2 = m.matches(match) self.assertEqual( @@ -329,7 +327,7 @@ m = self.parsemanifest(A_HUGE_MANIFEST) flist = m.keys()[80:300] - match = matchmod.exact(b'/', b'', flist) + match = matchmod.exact(flist) m2 = m.matches(match) self.assertEqual(flist, m2.keys()) @@ -363,7 +361,7 @@ against a directory.''' m = self.parsemanifest(A_DEEPER_MANIFEST) - match = matchmod.exact(b'/', b'', [b'a/b']) + match = matchmod.exact([b'a/b']) m2 = m.matches(match) self.assertEqual([], m2.keys())