Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a 'Mercurial Notifier' program that will tell me when an external repository has changed?

There are a few different tools for Subversion that run in the background, pinging the central repository every few minutes, and will alert you if any changes are detected (I'm using Windows 7, but this is true for OS X and Linux as well).

Is there anything like that for Mercurial, that will watch a specific repository and alert me to any changes?

like image 524
moswald Avatar asked May 12 '10 16:05

moswald


People also ask

What does hg commit do?

hg commit creates a snapshot of the changes to 1 or more files in the local repository. Always write a log message when committing changes. hg diff displays differences between revisions. hg revert recovers old versions of files.

How do you use a hg strip?

hg strip [-k] [-f] [-B bookmark] [-r] REV... The strip command removes the specified changesets and all their descendants. If the working directory has uncommitted changes, the operation is aborted unless the --force flag is supplied, in which case changes will be discarded.

What does hg update do?

Description. Update the repository's working directory to the specified changeset. If no changeset is specified, update to the tip of the current named branch and move the active bookmark (see hg help bookmarks). Update sets the working directory's parent revision to the specified changeset (see hg help parents).

Where is HGRC file on Windows?

hg/hgrc file. Global configuration like the username setting is typically put into: %USERPROFILE%\mercurial. ini (on Windows)


2 Answers

One way to do this is to have a local tool monitor the repository's RSS (or atom) feed. Every repo served over hgserve/hgweb/hgwebdir has feeds available and most systems have RSS poller widgets: https://superuser.com/questions/9929/rss-notification-in-system-tray

For example, for the main mercurial repository, you'd configure your feed poller to watch:

https://www.mercurial-scm.org/repo/hg/rss-log

like image 194
Ry4an Brase Avatar answered Oct 05 '22 04:10

Ry4an Brase


There's an extension called NotifyExtension that is distributed with Mercurial that can be configured to send email when a repository changes.

Edited to add: If you prefer a local client solution, check out the Hg Commit Monitor.

like image 31
Jacob Mattison Avatar answered Oct 05 '22 02:10

Jacob Mattison