How do I recursively delete folders from a mercury tracking system

I have a working directory structure as shown below:

mercurial_working_dir:

  • project1
  • project2
  • project3

Each project folder has public folders that I want to cancel from mercurial.eg: I do not want any file to be tracked in the / metadata folder, which is shared by three projects. As far as I know, I should use the hg remove -Af command with the specified files. Is there a way to define regular expressions in a command to recursively "delete" the current version of any file in the metadata folder that is placed in all my projects?

+5
source share
1 answer

. :

hg rm "glob:**/metadata/**"

, re: glob:.

+10

All Articles