annotate tests/test-hgcia @ 9328:648d6a1a1cf2
patch: create file even if source is not /dev/null
as long as the first hunk is -0,0 and the source and destination have the
same name. Matt found a patch like this, and /usr/bin/patch accepts it.
author |
Brendan Cully <brendan@kublai.com> |
date |
Fri, 07 Aug 2009 19:27:54 -0700 |
parents |
b80b944836ec |
children |
|
rev |
line source |
7438
|
1 #!/bin/sh
|
|
2
|
|
3 cat >> $HGRCPATH <<EOF
|
|
4 [extensions]
|
|
5 hgcia=
|
|
6
|
|
7 [hooks]
|
|
8 changegroup.cia = python:hgext.hgcia.hook
|
|
9
|
|
10 [cia]
|
|
11 user = testuser
|
|
12 project = testproject
|
|
13 test = True
|
|
14 EOF
|
|
15
|
|
16 hg init src
|
|
17 hg init cia
|
|
18
|
|
19 cd src
|
|
20 echo foo > foo
|
|
21 hg ci -Amfoo
|
|
22
|
|
23 hg push ../cia
|