Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7530983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:03:44+00:00 2026-05-30T05:03:44+00:00

Is it possible with Mercurial to remove all files with a certaain extension? I

  • 0

Is it possible with Mercurial to remove all files with a certaain extension? I did an addremove and then all my binary .pyc were versioned and now I get this stopper when I do versioning:

tool kdiff3 can't handle binary
tool docdiff can't handle binary
 no tool found to merge bnano-www/wtforms/widgets.pyc
keep (l)ocal or take (o)ther? o
19 files updated, 67 files merged, 0 files removed, 0 files unresolved

C:\Users\developer\bnano\bnano-www>

I don’t really know what it means except I can press o for other and go on with my work. Now I’d like to clean my repository and optimal would be to be able to do an addremove without binaries getting added but I think it is not possible.

Can you give some recommendation what to do in this case?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T05:03:46+00:00Added an answer on May 30, 2026 at 5:03 am

    HgIgnore

    First of all, you can add some rules to the .hgignore file to tell Mercurial that you want to ignore some files. Then, hg addremove won’t add them automatically and they won’t appear in the output of the commands (ie hg status) as untracked.

    Removing the files

    To remove your files, you can use hg remove myfile, for example, if all your pyc files are in the same directory, you can do hg remove *.pyc and then commit the change.

    If your files are scattered in various repository, something like hg remove -I *.pyc **/* should remove all .pyc files in all directories.

    Exclusion patterns

    FYI, will it’s better to add unwanted files in the .hgignore file, you can also tell addremove to ignore some files by doing hg addremove -X *.pyc. This will add/remove every files except those having the pyc extension.

    You can find help about a specific mercurial command using help. For example, hg help addremove. In general everything is neatly explained !

    Tutorial

    To explore various Mercurial concepts in more depth, I recommand this excellent tutorial : http://hginit.com

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Why does Mercurial think my SQL files are binary? I generated a
I'm testing mercurial now with hgsubversion extension. All works fine except subversion comments: non-latin
is it possible to use Mercurial version control to track Word or PDF files?
I created a backup of my mercurial repository using hg bundle --all name.hg Now,
Is it possible to view in the Mercurial logs all instances where a user
Is it possible to get Mercurial to show progress of long-running push or pull
is it possible to use .hgignore in mercurial to ignore header files generated from
Is it possible to see a list of all tags on a remote Mercurial
Possible Duplicate: Git interoperability with a Mercurial Repository I'm using Git for all of
In Mercurial it's possible to hg status only the modified/added/removed files by doing: hg

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.