Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 438240 | Differences between
and this patch

Collapse All | Expand All

(-)a/irkerhook.py (-3 / +3 lines)
Lines 39-45 default_channels = "irc://chat.freenode.net/#commits" Link Here
39
39
40
version = "1.20"
40
version = "1.20"
41
41
42
import os, sys, commands, socket, urllib, subprocess, locale, datetime
42
import os, sys, commands, socket, urllib, subprocess, locale, datetime, re
43
from pipes import quote as shellquote
43
from pipes import quote as shellquote
44
try:
44
try:
45
    import simplejson as json	# Faster, also makes us Python-2.5-compatible
45
    import simplejson as json	# Faster, also makes us Python-2.5-compatible
Lines 258-264 class GitExtractor(GenericExtractor): Link Here
258
    def commit_factory(self, commit_id):
258
    def commit_factory(self, commit_id):
259
        "Make a Commit object holding data for a specified commit ID."
259
        "Make a Commit object holding data for a specified commit ID."
260
        commit = Commit(self, commit_id)
260
        commit = Commit(self, commit_id)
261
        commit.branch = os.path.basename(self.refname)
261
        # Get rid of refs/*/ for cleaner output.
262
        commit.branch = re.sub(r"^refs/[^/]*/", "", self.refname)
262
        # Compute a description for the revision
263
        # Compute a description for the revision
263
        if self.revformat == 'raw':
264
        if self.revformat == 'raw':
264
            commit.rev = commit.commit
265
            commit.rev = commit.commit
265
- 

Return to bug 438240