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