Mercurial > hg-stable
changeset 7413:0b6428da1f22
email: add References field in the header
This hopefully helps clients get the threading right.
author | Benoit Allard <benoit@aeteurope.nl> |
---|---|
date | Tue, 25 Nov 2008 23:13:14 +0100 |
parents | ebbfacb2eea5 |
children | 040484030491 |
files | hgext/patchbomb.py tests/test-patchbomb tests/test-patchbomb.out |
diffstat | 3 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/patchbomb.py Tue Nov 25 22:52:25 2008 +0100 +++ b/hgext/patchbomb.py Tue Nov 25 23:13:14 2008 +0100 @@ -402,6 +402,7 @@ m['Message-Id'] = genmsgid('patchbomb') if parent: m['In-Reply-To'] = parent + m['References'] = parent else: parent = m['Message-Id'] m['Date'] = util.datestr(start_time, "%a, %d %b %Y %H:%M:%S %1%2")
--- a/tests/test-patchbomb Tue Nov 25 22:52:25 2008 +0100 +++ b/tests/test-patchbomb Tue Nov 25 23:13:14 2008 +0100 @@ -4,6 +4,7 @@ { sed -e 's/\(Message-Id:.*@\).*/\1/' \ -e 's/\(In-Reply-To:.*@\).*/\1/' \ + -e 's/\(References:.*@\).*/\1/' \ -e 's/===.*/===/' }
--- a/tests/test-patchbomb.out Tue Nov 25 22:52:25 2008 +0100 +++ b/tests/test-patchbomb.out Tue Nov 25 23:13:14 2008 +0100 @@ -54,6 +54,7 @@ X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab Message-Id: <8580ff50825a50c8f716.121@ In-Reply-To: <patchbomb.120@ +References: <patchbomb.120@ Date: Thu, 01 Jan 1970 00:02:01 +0000 From: quux To: foo @@ -80,6 +81,7 @@ X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9 Message-Id: <97d72e5f12c7e84f8506.122@ In-Reply-To: <patchbomb.120@ +References: <patchbomb.120@ Date: Thu, 01 Jan 1970 00:02:02 +0000 From: quux To: foo @@ -266,6 +268,7 @@ X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab Message-Id: <8580ff50825a50c8f716.61@ In-Reply-To: <patchbomb.60@ +References: <patchbomb.60@ Date: Thu, 01 Jan 1970 00:01:01 +0000 From: quux To: foo @@ -295,6 +298,7 @@ X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9 Message-Id: <97d72e5f12c7e84f8506.62@ In-Reply-To: <patchbomb.60@ +References: <patchbomb.60@ Date: Thu, 01 Jan 1970 00:01:02 +0000 From: quux To: foo @@ -377,6 +381,7 @@ X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab Message-Id: <8580ff50825a50c8f716.61@ In-Reply-To: <patchbomb.60@ +References: <patchbomb.60@ Date: Thu, 01 Jan 1970 00:01:01 +0000 From: quux To: foo @@ -409,6 +414,7 @@ X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9 Message-Id: <97d72e5f12c7e84f8506.62@ In-Reply-To: <patchbomb.60@ +References: <patchbomb.60@ Date: Thu, 01 Jan 1970 00:01:02 +0000 From: quux To: foo @@ -504,6 +510,7 @@ X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab Message-Id: <8580ff50825a50c8f716.61@ In-Reply-To: <patchbomb.60@ +References: <patchbomb.60@ Date: Thu, 01 Jan 1970 00:01:01 +0000 From: quux To: foo @@ -545,6 +552,7 @@ X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9 Message-Id: <97d72e5f12c7e84f8506.62@ In-Reply-To: <patchbomb.60@ +References: <patchbomb.60@ Date: Thu, 01 Jan 1970 00:01:02 +0000 From: quux To: foo @@ -606,6 +614,7 @@ X-Mercurial-Node: ff2c9fa2018b15fa74b33363bda9527323e2a99f Message-Id: <ff2c9fa2018b15fa74b3.61@ In-Reply-To: <patchbomb.60@ +References: <patchbomb.60@ Date: Thu, 01 Jan 1970 00:01:01 +0000 From: quux To: foo @@ -651,6 +660,7 @@ X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab Message-Id: <8580ff50825a50c8f716.61@ In-Reply-To: <patchbomb.60@ +References: <patchbomb.60@ Date: Thu, 01 Jan 1970 00:01:01 +0000 From: quux To: foo @@ -677,6 +687,7 @@ X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9 Message-Id: <97d72e5f12c7e84f8506.62@ In-Reply-To: <patchbomb.60@ +References: <patchbomb.60@ Date: Thu, 01 Jan 1970 00:01:02 +0000 From: quux To: foo @@ -757,6 +768,7 @@ X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab Message-Id: <8580ff50825a50c8f716.61@ In-Reply-To: <patchbomb.60@ +References: <patchbomb.60@ Date: Thu, 01 Jan 1970 00:01:01 +0000 From: quux To: foo @@ -789,6 +801,7 @@ X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9 Message-Id: <97d72e5f12c7e84f8506.62@ In-Reply-To: <patchbomb.60@ +References: <patchbomb.60@ Date: Thu, 01 Jan 1970 00:01:02 +0000 From: quux To: foo