From fa61a7f85e98ae2be8cd9c29c2bbcb94740c6a51 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 2 Oct 2012 15:08:50 -0400 Subject: [PATCH] Bug fix. --- irkerhook.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.26.2