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

  • SEARCH
  • Home
  • 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 8199267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:08:07+00:00 2026-06-07T06:08:07+00:00

I have a RE checker that says this should work. What am I doing

  • 0

I have a RE checker that says this should work. What am I doing wrong?!?

Example of what I am trying to ignore:

apps/cms/templates/cms/test_bup_DEPRECATED/widgets/page_link.html

And my .hgignore file:

syntax: regexp
^static
.*_DEPRECATED.*

I have tried all sorts of things and no success 🙁

Another failed attempt:

syntax: glob
_DEPRECATED/*

UPDATE:
I edited the .hgignore file to this:

syntax: glob
**_DEPRECATED/**

But hg st still doing this:

$ hg st | grep DEPR
A apps/cms/templates/cms/test_DEPRECATED/base.html

Same result for this:

syntax: glob
_DEPRECATED
  • 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-06-07T06:08:08+00:00Added an answer on June 7, 2026 at 6:08 am

    First, .hgignore won’t ignore files already tracked by Mercurial. Your example indicates the file is already tracked:

    $ hg st | grep DEPR
    A apps/cms/templates/cms/test_DEPRECATED/base.html
    

    The file has already been added, but not committed. Use hg forget to forget about the file, and then the ignore pattern will take effect.

    .hgignore patterns match any part of the path, so this is all you need:

    syntax: regexp
    _DEPRECATED/
    

    Note you may want the trailing slash for a directory or it will match files ending in _DEPRECATED as well, otherwise drop it.

    To work out ignore patterns, the ignore GUI in TortoiseHg (thg ignore) is very helpful. It displays all files not tracked and not ignored, and patterns can be entered until the right files are ignored.

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

Sidebar

Related Questions

how can i change this: (this script says that it should hide #writeComment if
I have added a checker to ensure that all fields in a form have
I have a switch case statement that doesn't work. I've checked the input, it's
I have a script that should log the user out of the site. It
I have some simple function that takes in a value This value is the
Currently I have this small script that makes it possible to check if a
So I have this bit of code, that for some reason won't compile, because
I'm trying to compile the example visual studio solution that comes with the 3.2
I have checked few other posts and found some UIAnimation transitions that kind-of give
I have checked out now a local working copy of a codebase that lives

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.