# HG changeset patch # User Franz Glasner # Date 1551523896 -3600 # Node ID a0cfd90149d0121a0a39bb2f0f9e75eb9aa2d85a # Parent 1b3671d1e57dc0cae01a1fa0a3873706f7c7169f "timestamps --show" not uses the file patterns to filter the result with them diff -r 1b3671d1e57d -r a0cfd90149d0 extensions/timestamps.py --- a/extensions/timestamps.py Mon Feb 25 09:36:28 2019 +0100 +++ b/extensions/timestamps.py Sat Mar 02 11:51:36 2019 +0100 @@ -188,7 +188,8 @@ destdir=destdir) elif opts.get("show"): with ui.formatter("timestamps", opts) as fm: - _show_timestamps(ui, ctx, fm, tsconfig=opts.get("tsconfig")) + _show_timestamps(ui, ctx, patsmatch, fm, + tsconfig=opts.get("tsconfig")) else: raise error.Abort(_("must give a command:" "--save or --restore, --show or --import")) @@ -498,7 +499,7 @@ _do_restore_timestamps(repo, ctx, matcher, ts, ui=ui, destdir=destdir) -def _show_timestamps(ui, ctx, formatter, +def _show_timestamps(ui, ctx, pats, formatter, tsconfig=None): def _tsv(v): @@ -539,7 +540,9 @@ "", " \n") formatter.condwrite( - ui.debugflag or not f.startswith("/"), + ui.debugflag \ + or (pats.always() and not f.startswith("/")) \ + or (not pats.always() and pats(f)), "match date file", " %s %s\t%s\n", '*' if tsconfmatch(f) else ' ',