Mercurial > hgsubversion
diff tests/test_util.py @ 1238:339b5703000c
test_util: use compat hack for filectxfn for deleted files
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Tue, 16 Sep 2014 16:02:44 -0700 |
parents | d3c79072bc6a |
children | 260212f056b7 |
line wrap: on
line diff
--- a/tests/test_util.py +++ b/tests/test_util.py @@ -667,8 +667,7 @@ class TestBase(unittest.TestCase): def filectxfn(repo, memctx, path): if path in removed: - raise IOError(errno.ENOENT, - "File \"%s\" no longer exists" % path) + return compathacks.filectxfn_deleted(memctx, path) entry = [e for e in changes if path == e[1]][0] source, dest, newdata = entry if newdata is None: