Show More
@@ -211,6 +211,8 b' class notifier(object):' | |||
|
211 | 211 | del msg['From'] |
|
212 | 212 | msg['From'] = sender |
|
213 | 213 | |
|
214 | msg['Date'] = util.datestr(date=util.makedate(), | |
|
215 | format="%a, %d %b %Y %H:%M:%S", timezone=True) | |
|
214 | 216 | fix_subject() |
|
215 | 217 | fix_sender() |
|
216 | 218 |
@@ -34,7 +34,8 b" hg --traceback --cwd a commit -Amb -d '1" | |||
|
34 | 34 | echo '% pull (minimal config)' |
|
35 | 35 | hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \ |
|
36 | 36 | -e 's/changeset \([0-9a-f]* *\)in .*test-notif/changeset \1in test-notif/' \ |
|
37 | -e 's/^details: .*test-notify/details: test-notify/' | |
|
37 | -e 's/^details: .*test-notify/details: test-notify/' \ | |
|
38 | -e 's/^Date:.*/Date:/' | |
|
38 | 39 | |
|
39 | 40 | cat <<EOF >> $HGRCPATH |
|
40 | 41 | [notify] |
@@ -50,5 +51,6 b' EOF' | |||
|
50 | 51 | echo % pull |
|
51 | 52 | hg --cwd b rollback |
|
52 | 53 | hg --traceback --cwd b pull ../a 2>&1 | sed -e 's/\(Message-Id:\).*/\1/' \ |
|
53 | -e 's/changeset \([0-9a-f]*\) in .*/changeset \1/' | |
|
54 | -e 's/changeset \([0-9a-f]*\) in .*/changeset \1/' \ | |
|
55 | -e 's/^Date:.*/Date:/' | |
|
54 | 56 |
@@ -13,6 +13,7 b' adding changesets' | |||
|
13 | 13 | adding manifests |
|
14 | 14 | adding file changes |
|
15 | 15 | added 1 changesets with 1 changes to 1 files |
|
16 | Date: | |
|
16 | 17 | Subject: changeset in test-notify/b: b |
|
17 | 18 | From: test |
|
18 | 19 | X-Hg-Notification: changeset 0647d048b600 |
@@ -41,6 +42,7 b' adding changesets' | |||
|
41 | 42 | adding manifests |
|
42 | 43 | adding file changes |
|
43 | 44 | added 1 changesets with 1 changes to 1 files |
|
45 | Date: | |
|
44 | 46 | Subject: b |
|
45 | 47 | From: test@test.com |
|
46 | 48 | X-Hg-Notification: changeset 0647d048b600 |
General Comments 0
You need to be logged in to leave comments.
Login now