Mercurial > hg
diff tests/test-absorb-filefixupstate.py @ 40187:dcda50856843
absorb: use a formatter to generate output
Change absorb to use a formatter to generate its output. This allows the use
of templates to customize the output.
Differential Revision: https://phab.mercurial-scm.org/D4997
author | Mark Thomas <mbthomas@fb.com> |
---|---|
date | Fri, 12 Oct 2018 13:35:58 +0000 |
parents | 1aab0007a7c0 |
children | 2372284d9457 |
line wrap: on
line diff
--- a/tests/test-absorb-filefixupstate.py Fri Oct 12 12:31:17 2018 -0400 +++ b/tests/test-absorb-filefixupstate.py Fri Oct 12 13:35:58 2018 +0000 @@ -43,7 +43,8 @@ expectedcontents = insertreturns(expectedcontents) oldcontents = insertreturns(oldcontents) workingcopy = insertreturns(workingcopy) - state = absorb.filefixupstate(pycompat.maplist(simplefctx, oldcontents)) + state = absorb.filefixupstate(pycompat.maplist(simplefctx, oldcontents), + 'path') state.diffwith(simplefctx(workingcopy)) if fixups is not None: assertlistequal(state.fixups, fixups)