tests/test-patchbomb.t
changeset 15164 7bddec632821
parent 14101 0c5228836fcd
child 15165 3a55cee825ba
equal deleted inserted replaced
15162:d67a15b2e608 15164:7bddec632821
  1467    97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
  1467    97d72e5f12c7e84f85064aa72e5a297142c36ed9 one
  1468    97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
  1468    97d72e5f12c7e84f85064aa72e5a297142c36ed9 one.patch
  1469   +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
  1469   +ff2c9fa2018b15fa74b33363bda9527323e2a99f two
  1470   +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
  1470   +ff2c9fa2018b15fa74b33363bda9527323e2a99f two.diff
  1471   
  1471   
  1472 
  1472 no intro message in non-interactive mode
  1473   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
  1473   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
  1474   >  -r 0:1
  1474   >  -r 0:1 | fixheaders
  1475   This patch series consists of 2 patches.
  1475   This patch series consists of 2 patches.
  1476   
  1476   
  1477   abort: Subject: [PATCH 0 of 2] Please enter a valid value
  1477   
  1478   [255]
  1478   Displaying [PATCH 1 of 2] a ...
       
  1479   Content-Type: text/plain; charset="us-ascii"
       
  1480   MIME-Version: 1.0
       
  1481   Content-Transfer-Encoding: 7bit
       
  1482   Subject: [PATCH 1 of 2] a
       
  1483   X-Mercurial-Node: 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1484   Message-Id: <8580ff50825a50c8f716.60@
       
  1485   In-Reply-To: <baz>
       
  1486   References: <baz>
       
  1487   User-Agent: Mercurial-patchbomb
       
  1488   Date: Thu, 01 Jan 1970 00:01:00 +0000
       
  1489   From: quux
       
  1490   To: foo
       
  1491   Cc: bar
       
  1492   
       
  1493   # HG changeset patch
       
  1494   # User test
       
  1495   # Date 1 0
       
  1496   # Node ID 8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1497   # Parent  0000000000000000000000000000000000000000
       
  1498   a
       
  1499   
       
  1500   diff -r 000000000000 -r 8580ff50825a a
       
  1501   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1502   +++ b/a	Thu Jan 01 00:00:01 1970 +0000
       
  1503   @@ -0,0 +1,1 @@
       
  1504   +a
       
  1505   
       
  1506   Displaying [PATCH 2 of 2] b ...
       
  1507   Content-Type: text/plain; charset="us-ascii"
       
  1508   MIME-Version: 1.0
       
  1509   Content-Transfer-Encoding: 7bit
       
  1510   Subject: [PATCH 2 of 2] b
       
  1511   X-Mercurial-Node: 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1512   Message-Id: <97d72e5f12c7e84f8506.61@
       
  1513   In-Reply-To: <8580ff50825a50c8f716.60@
       
  1514   References: <8580ff50825a50c8f716.60@
       
  1515   User-Agent: Mercurial-patchbomb
       
  1516   Date: Thu, 01 Jan 1970 00:01:01 +0000
       
  1517   From: quux
       
  1518   To: foo
       
  1519   Cc: bar
       
  1520   
       
  1521   # HG changeset patch
       
  1522   # User test
       
  1523   # Date 2 0
       
  1524   # Node ID 97d72e5f12c7e84f85064aa72e5a297142c36ed9
       
  1525   # Parent  8580ff50825a50c8f716709acdf8de0deddcd6ab
       
  1526   b
       
  1527   
       
  1528   diff -r 8580ff50825a -r 97d72e5f12c7 b
       
  1529   --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1530   +++ b/b	Thu Jan 01 00:00:02 1970 +0000
       
  1531   @@ -0,0 +1,1 @@
       
  1532   +b
       
  1533   
       
  1534 
       
  1535 
  1479 
  1536 
  1480   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
  1537   $ hg email --date '1970-1-1 0:1' -n -f quux -t foo -c bar --in-reply-to baz \
  1481   >  -s test -r 0:1 | fixheaders
  1538   >  -s test -r 0:1 | fixheaders
  1482   This patch series consists of 2 patches.
  1539   This patch series consists of 2 patches.
  1483   
  1540   
  1824   $ HGENCODING=iso-8859-1
  1881   $ HGENCODING=iso-8859-1
  1825   $ export HGENCODING
  1882   $ export HGENCODING
  1826   $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "bar@${UUML}nicode.com" -s test -r 0
  1883   $ hg email --date '1980-1-1 0:1' -m tmp.mbox -f quux -t "bar@${UUML}nicode.com" -s test -r 0
  1827   This patch series consists of 1 patches.
  1884   This patch series consists of 1 patches.
  1828   
  1885   
  1829   Cc: 
       
  1830   
  1886   
  1831   Writing [PATCH] test ...
  1887   Writing [PATCH] test ...
  1832 
  1888 
  1833   $ cat tmp.mbox
  1889   $ cat tmp.mbox
  1834   From quux Tue Jan 01 00:01:01 1980
  1890   From quux Tue Jan 01 00:01:01 1980
  1869   $ hg add d
  1925   $ hg add d
  1870   $ hg ci -md -d '4 0'
  1926   $ hg ci -md -d '4 0'
  1871   $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t
  1927   $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t
  1872   comparing with ../t
  1928   comparing with ../t
  1873   searching for changes
  1929   searching for changes
  1874   From [test]: test
       
  1875   This patch series consists of 8 patches.
  1930   This patch series consists of 8 patches.
  1876   
  1931   
  1877   
  1932   
  1878   Write the introductory message for the patch series.
  1933   Write the introductory message for the patch series.
  1879   
  1934   
  1880   Cc: 
       
  1881   
  1935   
  1882   Displaying [PATCH 0 of 8] test ...
  1936   Displaying [PATCH 0 of 8] test ...
  1883   Content-Type: text/plain; charset="us-ascii"
  1937   Content-Type: text/plain; charset="us-ascii"
  1884   MIME-Version: 1.0
  1938   MIME-Version: 1.0
  1885   Content-Transfer-Encoding: 7bit
  1939   Content-Transfer-Encoding: 7bit
  2143 
  2197 
  2144 dest#branch URIs:
  2198 dest#branch URIs:
  2145   $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t#test
  2199   $ hg email --date '1980-1-1 0:1' -n -t foo -s test -o ../t#test
  2146   comparing with ../t
  2200   comparing with ../t
  2147   searching for changes
  2201   searching for changes
  2148   From [test]: test
       
  2149   This patch series consists of 1 patches.
  2202   This patch series consists of 1 patches.
  2150   
  2203   
  2151   Cc: 
       
  2152   
  2204   
  2153   Displaying [PATCH] test ...
  2205   Displaying [PATCH] test ...
  2154   Content-Type: text/plain; charset="us-ascii"
  2206   Content-Type: text/plain; charset="us-ascii"
  2155   MIME-Version: 1.0
  2207   MIME-Version: 1.0
  2156   Content-Transfer-Encoding: 7bit
  2208   Content-Transfer-Encoding: 7bit