[PATCH] hgext/mq.py - add qfiles command

Alexis S. L. Carvalho alexis at cecm.usp.br
Sun Mar 4 13:19:47 UTC 2007


Thus spake Ben Thomas:
> # HG changeset patch
> # User Ben Thomas <bthomas at virtualiron.com>
> # Date 1171550168 18000
> # Node ID 365c2ef7ec56d21b50eac9773db7d7386e9c6034
> # Parent  5b1f663ef86d68ce11d70de8e5ab61d93341a18c
> Add qfiles command to show files modified by a patch

I haven't tested this, but I expect it won't work in some cases.  E.g.:

- you have a context patch in .hg/patches.  This is probably not a
  common case since hg qrefresh will "convert" it into a unified diff,
  but it'd be nice to handle it.

- I'm not sure it would work with git patches, especially patches that
  copy/rename files.

Looking quickly at quilt, "quilt files" works only if the patch is
applied.  If we follow the same route, we could probably just do
something similar to hg status -nmard --rev patch-parent --rev patch ,
with some special casing if we're looking at the top patch.  This would
mostly involve working with repo.status.

Alexis



More information about the Mercurial-devel mailing list