Ance
Ance

Reputation: 146

Remove extra folders from Mercurial repository

I have an Android Gradle project that is recently converted from ant project resulting to have a lot of unversioned extra directories in Mercurial repository.

Is there any easy way to remove all "unversioned" directories that does not contain any "versioned" files?

I have tried hg purge command with many flags. But for example hg purge with --dirs flag does not remove directories that contains something (for example contains an empty directory).

Of course I can re-clone the whole project but this must be done on our CI-slave servers too and that's why single command could be a better solution.

Upvotes: 1

Views: 34

Answers (1)

Ance
Ance

Reputation: 146

Purge command worked finally.

hg purge --all

Upvotes: 1

Related Questions