diff options
author | Björn Stenberg <bjorn@haxx.se> | 2004-05-07 12:22:06 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2004-05-07 12:22:06 +0000 |
commit | 59fb25d2a9a4ddc982751d6ef2f9a368d29d4abe (patch) | |
tree | d471965419aa56485839496f82e3ba531ff361bc /CVSROOT/syncmail | |
parent | 79e4b49433ae9ad77e91dca19fc455823c08733c (diff) | |
download | rockbox-59fb25d2a9a4ddc982751d6ef2f9a368d29d4abe.tar.gz rockbox-59fb25d2a9a4ddc982751d6ef2f9a368d29d4abe.zip |
Experimenting with USER
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4579 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'CVSROOT/syncmail')
-rwxr-xr-x | CVSROOT/syncmail | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/CVSROOT/syncmail b/CVSROOT/syncmail index ce467a80ba..3e61116a29 100755 --- a/CVSROOT/syncmail +++ b/CVSROOT/syncmail | |||
@@ -49,6 +49,9 @@ Use <path> as the environment variable CVSROOT. Otherwise this | |||
49 | -u | 49 | -u |
50 | Produce a unified diff (smaller, but harder to read). | 50 | Produce a unified diff (smaller, but harder to read). |
51 | 51 | ||
52 | -U user | ||
53 | Mark diff as made by user. | ||
54 | |||
52 | <%%S> | 55 | <%%S> |
53 | CVS %%s loginfo expansion. When invoked by CVS, this will be a single | 56 | CVS %%s loginfo expansion. When invoked by CVS, this will be a single |
54 | string containing the directory the checkin is being made in, relative | 57 | string containing the directory the checkin is being made in, relative |
@@ -174,6 +177,8 @@ def main(): | |||
174 | contextlines = 2 | 177 | contextlines = 2 |
175 | elif opt == '-u': | 178 | elif opt == '-u': |
176 | contextlines = 0 | 179 | contextlines = 0 |
180 | elif opt == '-U': | ||
181 | username = arg | ||
177 | 182 | ||
178 | # What follows is the specification containing the files that were | 183 | # What follows is the specification containing the files that were |
179 | # modified. The argument actually must be split, with the first component | 184 | # modified. The argument actually must be split, with the first component |
@@ -198,8 +203,8 @@ def main(): | |||
198 | return | 203 | return |
199 | if specs[-3:] == ['-', 'New', 'directory']: | 204 | if specs[-3:] == ['-', 'New', 'directory']: |
200 | del specs[-3:] | 205 | del specs[-3:] |
201 | print 'Generating notification message...' | 206 | print '%s generating notification message...' % username |
202 | blast_mail(mailcmd, specs[1:], contextlines) | 207 | # blast_mail(mailcmd, specs[1:], contextlines) |
203 | print 'Generating notification message... done.' | 208 | print 'Generating notification message... done.' |
204 | 209 | ||
205 | 210 | ||