FYI: Hg Change Feed

Matt Mackall mpm at selenic.com
Sat Apr 6 18:48:48 CDT 2013


On Sun, 2013-04-07 at 00:33 +0200, Angel Ezquerra wrote:
> On Sat, Apr 6, 2013 at 1:21 PM, Dirkjan Ochtman <dirkjan at ochtman.nl> wrote:
> > This was hacked together by one of the Mozilla devs:
> >
> > https://github.com/Mossop/hgchangefeed
> >
> > Introduction here:
> >
> > http://www.oxymoronical.com/blog/2013/04/Get-notifications-about-changes-to-any-directory-in-mercurial
> >
> > Demo here:
> >
> > http://hgchanges.fractalbrew.com/
> >
> > Cheers,
> >
> > Dirkjan
> 
> Thanks for sharing.
> 
> It seems to me that this is something that could be done in hgweb by
> implementing an atom and/or rss page for folders. It would probably be
> much simpler to implement than the setup described in the page that
> you sent too.

Indeed, though it might not be sufficiently fast. Generating a list on
the last 10 commits in bar/* might require visiting 10k commits. That
could take a couple seconds. With a lot of subscribers polling at
regular intervals, that might get expensive.

However, we could perhaps heuristically limit such a search to the last
day or two. Or we could make the feature configurable, like downloading
zip files.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list