Kiln » Kiln Extensions
Clone URL:  
test-summary.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env python # # Test summary import os import common hgt = common.BfilesTester() hgt.updaterc() hgt.announce('setup') os.mkdir('repo1') os.chdir('repo1') hgt.hg(['init']) hgt.writefile('n1', 'n1') hgt.writefile('b1', 'b1') os.mkdir('dir') hgt.writefile('dir/n2', 'n2') hgt.writefile('dir/b2', 'b2') hgt.hg(['add', 'n1', 'dir/n2']) hgt.hg(['add', '--bf'], stdout='''adding b1 as bfile adding dir/b2 as bfile ''') hgt.hg(['commit', '-m', 'add files']) os.chdir('..') hgt.hg(['clone', 'repo1', 'repo2'], stdout='''updating to branch default 4 files updated, 0 files merged, 0 files removed, 0 files unresolved getting changed bfiles 2 big files updated, 0 removed ''') os.chdir('repo2') hgt.writefile('n1', 'n11') hgt.writefile('b1', 'b11') hgt.hg(['commit', '-m', 'edit files']) os.chdir('..') hgt.announce('summary') os.chdir('repo1') hgt.hg(['summary'], stdout='''parent: 0:372389b1b261 tip add files branch: default commit: 2 unknown (clean) update: (current) ''') hgt.hg(['summary', '--bf'], stdout='''parent: 0:372389b1b261 tip add files branch: default commit: 2 unknown (clean) update: (current) kbfiles: No remote repo ''') hgt.hg(['summary', '--bf', '--remote'], status=255, stderr='abort: repository default not found!\n', stdout='''parent: 0:372389b1b261 tip add files branch: default commit: 2 unknown (clean) update: (current) ''') os.chdir('../repo2') hgt.hg(['summary'], stdout='''parent: 1:c44ace51ad7e tip edit files branch: default commit: 2 unknown (clean) update: (current) ''') hgt.hg(['summary', '--bf'], stdout='''parent: 1:c44ace51ad7e tip edit files branch: default commit: 2 unknown (clean) update: (current) searching for changes kbfiles: 1 to upload ''') hgt.hg(['summary', '--bf', '--remote'], stdout='''parent: 1:c44ace51ad7e tip edit files branch: default commit: 2 unknown (clean) update: (current) remote: 1 outgoing searching for changes kbfiles: 1 to upload ''')