From: "Sebastian Pipping" <sping@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/userinfo-scripts:master commit in: /
Date: Sun, 6 May 2012 15:32:36 +0000 (UTC) [thread overview]
Message-ID: <1336318239.272ee461a4e7edd3208107242c015360acbd4b3e.sping@gentoo> (raw)
commit: 272ee461a4e7edd3208107242c015360acbd4b3e
Author: Sebastian Pipping <sebastian <AT> pipping <DOT> org>
AuthorDate: Sun May 6 15:30:39 2012 +0000
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Sun May 6 15:30:39 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/userinfo-scripts.git;a=commit;h=272ee461
Extract function produce_line()
---
git-identity-map.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/git-identity-map.py b/git-identity-map.py
index c83a744..fd87158 100755
--- a/git-identity-map.py
+++ b/git-identity-map.py
@@ -8,6 +8,11 @@ import xml.etree.ElementTree as ET # Python 2.5
import sys
+def produce_line(svn_nick, realname, gentoo_nick):
+ line = '%s = %s <%s@gentoo.org>' % (svn_nick, realname, gentoo_nick)
+ print(line.encode('utf-8'))
+
+
def main(args):
if len(args) != 2:
print('USAGE: %s GENTOO/xml/htdocs/proj/en/devrel/roll-call/userinfo.xml' % args[0])
@@ -20,12 +25,11 @@ def main(args):
return 1
for user in userlist.findall('user'):
- nick = user.attrib['username']
+ svn_nick = user.attrib['username']
location = user.find('location')
realname = user.find('realname').attrib['fullname'].strip()
- line = '%s = %s <%s@gentoo.org>' % (nick, realname, nick)
- print(line.encode('utf-8'))
+ produce_line(svn_nick, realname, svn_nick)
return 0
next reply other threads:[~2012-05-06 15:32 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-06 15:32 Sebastian Pipping [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-07-12 18:22 [gentoo-commits] proj/userinfo-scripts:master commit in: / Sebastian Pipping
2014-07-12 18:22 Sebastian Pipping
2014-06-22 23:26 Sebastian Pipping
2014-06-22 22:14 Sebastian Pipping
2014-06-15 19:00 Sebastian Pipping
2013-05-23 23:41 Sebastian Pipping
2013-05-07 0:41 Sebastian Pipping
2013-05-07 0:41 Sebastian Pipping
2012-11-11 20:59 Sebastian Pipping
2012-11-11 17:55 Sebastian Pipping
2012-11-11 17:55 Sebastian Pipping
2012-05-06 16:17 Sebastian Pipping
2012-05-06 16:02 Sebastian Pipping
2012-05-06 15:32 Sebastian Pipping
2012-03-25 0:47 Sebastian Pipping
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1336318239.272ee461a4e7edd3208107242c015360acbd4b3e.sping@gentoo \
--to=sping@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox