From: Eric S. Raymond Date: Tue, 2 Oct 2012 19:08:50 +0000 (-0400) Subject: Bug fix. X-Git-Tag: 1.5~23 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=fa61a7f85e98ae2be8cd9c29c2bbcb94740c6a51;p=irker.git Bug fix. --- diff --git a/irkerhook.py b/irkerhook.py index cd5e070..d8b0719 100755 --- a/irkerhook.py +++ b/irkerhook.py @@ -329,7 +329,7 @@ class HgExtractor(GenericExtractor): self.do_overrides() def head(self): "Return a symbolic reference to the tip commit of the current branch." - return "1" + return "-1" def hg_hook(ui, repo, _hooktype, node=None, _url=None, **_kwds): # To be called from a Mercurial "commit" or "incoming" hook. Example @@ -340,6 +340,7 @@ def hg_hook(ui, repo, _hooktype, node=None, _url=None, **_kwds): ship(extractor) def ship(commit, debug): + "Ship a notification for the sspecified commit." metadata = extractor.commit_factory(commit) # Message reduction. The assumption here is that IRC can't handle # lines more than 510 characters long. If we exceed that length, we