Kiln » Kiln Extensions
Clone URL:  
test-addremove.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
#!/usr/bin/env python # # Test basic kiln interaction import os import common hgt = common.BfilesTester() hgt.updaterc() hgt.announce('test with bfiles') os.mkdir('repo1') os.chdir('repo1') hgt.hg(['init']) hgt.writefile('foo', 'blah') hgt.hg(['add', '--bf', 'foo']) hgt.hg(['addremove'], status=255, stderr='abort: addremove cannot be run on a repo with bfiles\n') hgt.hg(['commit', '-m', 'added foo']) hgt.hg(['addremove'], status=255, stderr='abort: addremove cannot be run on a repo with bfiles\n') hgt.announce('test without bfiles') hgt.updaterc({'extensions': [('kbfiles', '!')]}) os.chdir('..') os.mkdir('repo2') os.chdir('repo2') hgt.hg(['init']) hgt.writefile('foo', 'blah') hgt.hg(['add', 'foo']) hgt.hg(['addremove']) hgt.hg(['commit', '-m', 'added foo']) hgt.hg(['addremove'])