notify: ignoring local fs access?

Thomas Klausner tk at giga.or.at
Thu May 24 17:16:46 CDT 2007


On Thu, May 24, 2007 at 05:10:45PM -0500, Matt Mackall wrote:
> On Thu, May 24, 2007 at 05:56:49PM +0200, Thomas Klausner wrote:
> > I'm using the notify extension with hg-0.9.3.  It seems to me that
> > when I clone a repository locally (hg clone /path/to/repo), no mails
> > are sent, while when I clone it with ssh://hostname/..., they do get
> > sent.
> 
> Seems like you've got it set up backwards? Notify is intended for
> when changes are pushed to a central repository, not for when that
> repo is pulled from or cloned.

Sorry, I worded it confusingly.

Compare the output of the following two:

# hg clone /repo localrepo
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
# hg clone ssh://localhost//repo remoterepo
requesting all changes
adding changesets
adding manifests
adding file changes
added 9 changesets with 9 changes to 2 files
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
# cd localrepo; echo foo > a; hg ci -m 'Test local'; hg push
pushing to /repo
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
# cd ../remotetest; hg pull -u
pulling from ssh://localhost//repo
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
# echo foo2 > a; hg ci -m 'Test remote'; hg push
pushing to ssh://localhost//repo
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 1 changes to 1 files
remote: notify: sending 2 subscribers 1 changes

Note that only in the second case the "notify" line is written (and
email is sent).
 Thomas


More information about the Mercurial mailing list