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 6926271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:53:47+00:00 2026-05-27T10:53:47+00:00

I saw this thread which discusses a solution for git , and found this

  • 0

I saw this thread which discusses a solution for git, and found this thread on the mailing list for Mercurial (the thread is four years old though)

The solution proposed in the mailing list is to use hg rm -Af file (and they leave open the possibility of implementing this behavior as a new, more intuitive option). I’m wondering if that option exists now.

Also, if I try the command above:

> hg rm -Af my_file
> hg st
R my_file

there is an R next to my_file, but the file my_file is technically on disk, and I have told Mercurial to stop tracking it, so why am I getting R next to it?

  • 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-27T10:53:47+00:00Added an answer on May 27, 2026 at 10:53 am

    You can just use hg forget or maybe add the file to your .hgignore file

    And to answer the last question about the R in my_file. If you see the help for hg rm --help:

    hg remove [OPTION]… FILE…

    aliases: rm

    remove the specified files on the next commit

    Schedule the indicated files for removal from the current branch.
    
    This command schedules the files to be removed at the next commit. To undo
    a remove before that, see "hg revert". To undo added files, see "hg
    forget".
    
    Returns 0 on success, 1 if any warnings encountered.
    

    options:

    -A –after record delete for missing files
    -f –force remove (and delete) file even if added or modified
    -I –include PATTERN [+] include names matching the given patterns
    -X –exclude PATTERN [+] exclude names matching the given patterns

    [+] marked option can be specified multiple times

    use “hg -v help remove” to show more info

    As you can see you are forcing the deletion of that file and that’s why you can see the R (Removed)

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

Sidebar

Related Questions

I saw this thread which is exactly what I've done as well, Downgraded PHP
I saw this thread : When would I need a SecureString in .NET? the
I saw that there's many, many thread about this on the web, also in
I have a thread which produces some data (a python list) and which shall
I just saw this thread, describing how to add conditional macros: Conditional value for
I was reading one of the thread on this site only and I saw
I saw this thread but wanted to confirm: How to convert NSNumber objects for
Yesterday on SO, i saw a thread asking for a code which some what
I saw this thread on Stack Overflow regarding converting between DBNull and nullable types
Saw this piece of code in a Ruby on Rails book. This first one

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.