Kiln » Unstable
Clone URL:  

Fixed /usr/bin/python -> /usr/bin/env python.

Changeset 365d9fb077fe

Parent 781d87b4b827

by David Golub

Changes to 26 files · Browse files at 365d9fb077fe Showing diff from parent 781d87b4b827 Diff from another changeset...

Change 1 of 1 Show Entire File tests/​test-add.py Stacked
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python    # Test various tricky bfadd corner cases.  
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python  #  # Test basic kiln interaction  
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python    # Test various tricky bfadd corner cases.  
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python  #  # Every commit needs time stamps so that the commits are unique (Mercurial backout test  # does the same thing).
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python    # Test various tricky bfadd corner cases.  
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python    # Test cloning a repo  
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python  #  # Test commit (lots of other tests commit all files so just try committing specific files)  #
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python    # Test various tricky bfadd corner cases.  
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python    # Test that kbfconvert handles tags properly  
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python    # Test copy and rename  
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python    # Test that edited bfiles show up as modified  
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python  #  # Test the fetch extension. Always give it a specific message because the message  # it automatically adds includes the path which is randomly generated.
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python    # Test remove  
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python  #  # Test basic kiln interaction  
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
 
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
-#!/usr/bin/python +#!/usr/bin/env python  #  # Test basic kiln interaction    import os  import common  import time    import kilntest    hgt = common.BfilesTester()    hgt.updaterc({'extensions': [('kilnauth', kilntest.KILNAUTHPATH)]})  hgt.announce('setup')  token = kilntest.gettoken()  kilntest.deletetest(hgt, token)  test = kilntest.createtest(hgt, token)  # Don't log this because command depends on path to kiln which can change  hgt.hg(['clone', test[0], 'repo1'],   stdout='''no changes found  updating to branch default  0 files updated, 0 files merged, 0 files removed, 0 files unresolved  ''', log=False)  os.chdir('repo1')  os.mkdir('a')  os.mkdir('a/b')  os.mkdir('a/b/c')  os.chdir('a')  hgt.writefile('n1', 'n1')  hgt.writefile('b/n2', 'n2')  hgt.writefile('b/c/n3', 'n3')  hgt.writefile('../n4', 'n4')  hgt.writefile('b1', 'b1')  hgt.writefile('b/b2', 'b2')  hgt.writefile('b/c/b3', 'b3')  hgt.writefile('../b4', 'b4')  hgt.hg(['add', 'n1', 'b/n2', 'b/c/n3', '../n4'])  hgt.hg(['add', '--bf'],   stdout='''adding b/b2 as bfile  adding b/c/b3 as bfile  adding b1 as bfile  adding ../b4 as bfile  ''')  hgt.hg(['commit', '-m', 'add files'])  hgt.hg(['push'],   stdout='''pushing to %s/Repo/Test/Test/Test  searching for changes  searching for changes  remote: kiln: successfully pushed one changeset  ''' % kilntest.KILNURL)  # edit to time so that server doesn't have it cached  contents = str(time.clock())  hgt.writefile('n1', contents)  hgt.writefile('b1', contents )  hgt.hg(['commit', '-m', 'edit n1 and b1'])    # turn bfiles off for testing  hgt.announce('test with no bfiles')  hgt.updaterc({'extensions': [('kbfiles', '!')]})  os.chdir('../..')  hgt.hg(['clone', test[0], 'repo2'],   stdout='requesting all changes\n', log=False,   stderr='abort: HTTP Error 400: To access this repository, install the kiln-bfiles extension from %s/Tools\n' % kilntest.KILNURL, status=255)  os.chdir('repo1')  hgt.hg(['push'], stdout='''pushing to %s/Repo/Test/Test/Test  searching for changes  remote: ERROR: Big file a/b1 at revision 1 has not been uploaded to the kiln server.  remote: ERROR: All big files must be uploaded to the kiln server before the repository is changed.  remote: transaction abort!  remote: rollback completed  remote: abort: pretxnchangegroup hook failed  ''' % kilntest.KILNURL, status=1)
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python  #  # Test summary  
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python    # Test various tricky bfadd corner cases.  
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python    # Test push pull  
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python    # Test remove  
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python    # Test that bfiles does not conflict with other extensions  # (e.g. bookmarks) that override localrepository.commit().
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python    # Test revert  
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python  #  # Test schemes with kiln  
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python    # Test status  
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python  #  # Test summary  
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python    # Test update/update -c/update -C  
 
1
 
2
3
4
 
 
1
2
3
4
@@ -1,4 +1,4 @@
-#!/usr/bin/python +#!/usr/bin/env python  #  # Test verify