0

How can I list all files in a repository that were committed (explicitly), although they were ignored because of the .hgignore file

  • .hgignore uses glob syntax
  • running on Windows
  • it's not necessary to take any global .hgignore file into account

My idea:
hg manifest > filter using the content of .hgignore > result

1
  • You cannot pipe the manifest into a filter of .hgignore. However, you can list the files you want by using the method described in the Mercurial TipsAndTricks: mercurial.selenic.com/wiki/…
    – Vince
    Apr 9, 2014 at 14:09

1 Answer 1

0

You have to learn and use filesets in this case

List files that are in .hgignore but are already tracked:

hg locate "set:hgignore() and not ignored()"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.