comparison tests/test-mq-qimport @ 7158:d1d011accf94

mq: let qimport read patches from URLs
author Brendan Cully <brendan@kublai.com>
date Sat, 18 Oct 2008 16:40:01 -0700
parents 05ec27530d04
children 1b7b21b634f2
comparison
equal deleted inserted replaced
7157:fd3cba5e73ae 7158:d1d011accf94
25 cd repo 25 cd repo
26 26
27 echo % qimport non-existing-file 27 echo % qimport non-existing-file
28 hg qimport non-existing-file 28 hg qimport non-existing-file
29 29
30 echo % import URL
31 echo foo >> foo
32 hg add foo
33 hg diff > $HGTMP/url.diff
34 hg revert --no-backup foo
35 rm foo
36 hg qimport file://$HGTMP/url.diff
37 hg qun
38
30 echo % build diff with CRLF 39 echo % build diff with CRLF
31 python ../writelines.py b 5 'a\n' 5 'a\r\n' 40 python ../writelines.py b 5 'a\n' 5 'a\r\n'
32 hg ci -Am addb 41 hg ci -Am addb
33 python ../writelines.py b 2 'a\n' 10 'b\n' 2 'a\r\n' 42 python ../writelines.py b 2 'a\n' 10 'b\n' 2 'a\r\n'
34 hg diff > b.diff 43 hg diff > b.diff