Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 363690 Details for
Bug 491808
=net-irc/irker-2.7 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
files/2.0-Git-Fixed-presentation-of-branches-containing-front-.patch
2.0-Git-Fixed-presentation-of-branches-containing-front-.patch (text/plain), 1.46 KB, created by
Bertrand Jacquin
on 2013-11-20 20:13:22 UTC
(
hide
)
Description:
files/2.0-Git-Fixed-presentation-of-branches-containing-front-.patch
Filename:
MIME Type:
Creator:
Bertrand Jacquin
Created:
2013-11-20 20:13:22 UTC
Size:
1.46 KB
patch
obsolete
>From 32f9252f172934d542dfe61bf1e1acc6076ddbce Mon Sep 17 00:00:00 2001 >From: Tom Hacohen <tom@stosb.com> >Date: Tue, 24 Sep 2013 16:45:42 +0100 >Subject: [PATCH] Git: Fixed presentation of branches containing front-slashes. > >Many projects use hierarchical branch names, for example: >"devs/tasn/feature-branch" >Before this commit, the branch above would be printed as "feature-branch" >instead of "devs/tasn/feature-branch". >--- > irkerhook.py | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/irkerhook.py b/irkerhook.py >index bfcfbea..b1de125 100755 >--- a/irkerhook.py >+++ b/irkerhook.py >@@ -39,7 +39,7 @@ default_channels = "irc://chat.freenode.net/#commits" > > version = "2.0" > >-import os, sys, commands, socket, urllib, subprocess, locale, datetime >+import os, sys, commands, socket, urllib, subprocess, locale, datetime, re > from pipes import quote as shellquote > try: > import simplejson as json # Faster, also makes us Python-2.5-compatible >@@ -257,7 +257,8 @@ class GitExtractor(GenericExtractor): > def commit_factory(self, commit_id): > "Make a Commit object holding data for a specified commit ID." > commit = Commit(self, commit_id) >- commit.branch = os.path.basename(self.refname) >+ # Get rid of refs/*/ for cleaner output. >+ commit.branch = re.sub(r"^refs/[^/]*/", "", self.refname) > # Compute a description for the revision > if self.revformat == 'raw': > commit.rev = commit.commit >-- >1.8.4.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 491808
:
363684
|
363686
|
363688
|
363690
|
363692
|
363694
|
368768
|
368770
|
368772
|
368774
|
368776
|
373058
|
373060
|
373062
|
373064
|
373066
|
373068
|
378738
|
378740
|
378742
|
378744
|
378746