comparison tests/test-default-push @ 2496:6dbb8ae0a0b3

add test for default-push.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Fri, 23 Jun 2006 18:23:42 -0700
parents
children
comparison
equal deleted inserted replaced
2495:4a2a4d988ead 2496:6dbb8ae0a0b3
1 #!/bin/sh
2
3 hg init a
4 echo a > a/a
5 hg --cwd a ci -Ama
6
7 hg clone a c
8
9 hg clone a b
10 echo b >> b/a
11 hg --cwd b ci -mb
12
13 echo % push should push to default when default-push not set
14 hg --cwd b push | sed 's/pushing to.*/pushing/'
15
16 echo % push should push to default-push when set
17 echo 'default-push = ../c' >> b/.hg/hgrc
18 hg --cwd b push | sed 's/pushing to.*/pushing/'