Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 491808 | 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 = "2.0"
40
version = "2.0"
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 257-263 class GitExtractor(GenericExtractor): Link Here
257
    def commit_factory(self, commit_id):
257
    def commit_factory(self, commit_id):
258
        "Make a Commit object holding data for a specified commit ID."
258
        "Make a Commit object holding data for a specified commit ID."
259
        commit = Commit(self, commit_id)
259
        commit = Commit(self, commit_id)
260
        commit.branch = os.path.basename(self.refname)
260
        # Get rid of refs/*/ for cleaner output.
261
        commit.branch = re.sub(r"^refs/[^/]*/", "", self.refname)
261
        # Compute a description for the revision
262
        # Compute a description for the revision
262
        if self.revformat == 'raw':
263
        if self.revformat == 'raw':
263
            commit.rev = commit.commit
264
            commit.rev = commit.commit
264
- 

Return to bug 491808