comparison tests/test-default-push.t @ 12287:d8707306d667

tests: unify test-default-push
author Adrian Buehlmann <adrian@cadifra.com>
date Tue, 14 Sep 2010 22:54:04 +0200
parents tests/test-default-push@6dbb8ae0a0b3
children 02990e22150b
comparison
equal deleted inserted replaced
12286:63352a7a8c1c 12287:d8707306d667
1 $ hg init a
2
3 $ echo a > a/a
4 $ hg --cwd a ci -Ama
5 adding a
6
7 $ hg clone a c
8 updating to branch default
9 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
10
11 $ hg clone a b
12 updating to branch default
13 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
14
15 $ echo b >> b/a
16 $ hg --cwd b ci -mb
17
18 Push should push to 'default' when 'default-push' not set:
19
20 $ hg --cwd b push
21 pushing to .*/a
22 searching for changes
23 adding changesets
24 adding manifests
25 adding file changes
26 added 1 changesets with 1 changes to 1 files
27
28 Push should push to 'default-push' when set:
29
30 $ echo 'default-push = ../c' >> b/.hg/hgrc
31 $ hg --cwd b push
32 pushing to .*/c
33 searching for changes
34 adding changesets
35 adding manifests
36 adding file changes
37 added 1 changesets with 1 changes to 1 files
38