Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 373064 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.7-Git-Fixed-presentation-of-branches-containing-front-.patch
2.7-Git-Fixed-presentation-of-branches-containing-front-.patch (text/plain), 1.51 KB, created by
Bertrand Jacquin
on 2014-03-19 23:06:39 UTC
(
hide
)
Description:
files/2.7-Git-Fixed-presentation-of-branches-containing-front-.patch
Filename:
MIME Type:
Creator:
Bertrand Jacquin
Created:
2014-03-19 23:06:39 UTC
Size:
1.51 KB
patch
obsolete
>From 6bcd90c94d2faf586f2730c591de8175238b043d Mon Sep 17 00:00:00 2001 >From: Tom Hacohen <tom@stosb.com> >Date: Tue, 24 Sep 2013 16:45:42 +0100 >Subject: [PATCH 3/3] 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". > >Signed-off-by: Bertrand Jacquin <beber@meleeweb.net> >--- > irkerhook.py | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/irkerhook.py b/irkerhook.py >index f2f82cf..82281e3 100755 >--- a/irkerhook.py >+++ b/irkerhook.py >@@ -39,7 +39,7 @@ default_channels = "irc://chat.freenode.net/#commits" > > version = "2.7" > >-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 >@@ -258,7 +258,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
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