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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:17:40+00:00 2026-06-14T23:17:40+00:00

I am attempting to use file patterns to limit push notifications to specific directories.

  • 0

I am attempting to use file patterns to limit push notifications to specific directories. The following glob patterns in [usersubs] are not triggering emails, though the basic patterns of asterix and double asterix work. OS: Windows XP.

**.sql
*.sql
one/*.sql
**.???
**/*.sql 

repos contents are:

.hg
root.sql
/one/one.sql

hgrc is:

[extensions]
notify =

[hooks]
incoming.notify = python:hgext.notify.hook

[email]
from = me@company.com

[smtp]
host = 12.34.56.78

baseurl = 

[notify]
sources = serve push pull bundle
test = False
config = 

[usersubs]
me@company.com = **.sql

maxdiff = 300

Process used:
1) clone the repo with these settings
2) change the two sql files listed so they can be committed
3) hg commit -m “comment here”
4) hg push

  • 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-14T23:17:41+00:00Added an answer on June 14, 2026 at 11:17 pm

    The notify extension doesn’t support using patterns to match particular files. From “hg help notify”:

    [usersubs]
    # key is subscriber email, value is a comma-separated list of repo patterns
    user@host = pattern

    [reposubs]
    # key is repo pattern, value is a comma-separated list of subscriber emails
    pattern = user@host

    A “pattern” is a “glob” matching the absolute path to a repository, optionally
    combined with a revset expression. A revset expression, if present, is
    separated from the glob by a hash.

    The patterns listed in the question are being treated as patterns to match the absolute path to a repository.

    Possible alternatives:

    • Split the files that you desire notification for into a separate repository (which should then be supported by the notify extension)
    • In Mercurial 2.4, try using a revset reposubs pattern, such as “#file(‘.sql’)=me@company.com”.
    • Write a custom hook to perform your desired notification based on detection of per-file changes
    • Instead of using notifications, have the recipients watch for changes on per-file RSS feeds provided by hgweb (suggested by mpm on IRC)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to use a .gitignore file with negated patterns (lines starting with
I am attempting to use a new settings file in my Windows Forms Application
I am attempting to use FTP in Powershell to upload a file. I am
I'm attempting to create a properly formatted video file for use in Apple's HTTP
I'm attempting to upload a file into a jsp and then use the file
I'm attempting to use mod_rewrite to redirect requests to 123.example.com/456/file.html to example.com/123/456/file.html . The
I am attempting to use Inno Setup to bootstrap a WiX generated .msi file
I'm attempting to use Paramiko (Python SSH library) to read a remote file, and
I am attempting to use System.Security.Cryptography.AesManaged to encrypt a file in my .net application.
I am attempting to use a iCloud-enabled UIDocument with a directory-based NSFileWrapper (aka File

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.