Changeset 365d9fb077fe…
Parent 781d87b4b827…
by
Changes to 26 files · Browse files at 365d9fb077fe Showing diff from parent 781d87b4b827 Diff from another changeset...
|
|
|
@@ -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).
|
|
|
- #!/usr/bin/python
+#!/usr/bin/env python
#
# Test commit (lots of other tests commit all files so just try committing specific files)
#
import os
import common
hgt = common.BfilesTester()
hgt.updaterc()
hgt.announce('test')
os.mkdir('repo1')
os.chdir('repo1')
hgt.hg(['init'])
os.mkdir('dir')
os.mkdir('dir/dir')
hgt.writefile('n1', 'n1')
hgt.writefile('dir/n2', 'n2')
hgt.writefile('dir/dir/n3', 'n3')
hgt.writefile('b1', 'b1')
hgt.writefile('dir/b2', 'b2')
hgt.writefile('dir/dir/b3', 'b3')
hgt.hg(['add', 'n1', 'dir/n2', 'dir/dir/n3'])
hgt.hg(['add', '--bf', 'b1', 'dir/b2', 'dir/dir/b3'])
hgt.hg(['status'],
stdout='''A b1
A dir/b2
A dir/dir/b3
A dir/dir/n3
A dir/n2
A n1
''')
hgt.hg(['commit', '-m', 'adding', '.kbf/b1'], status=255, stderr="abort: Don't commit bfile standin. Commit bfile.\n")
hgt.hg(['status'],
stdout='''A b1
A dir/b2
A dir/dir/b3
A dir/dir/n3
A dir/n2
A n1
''')
hgt.hg(['commit', '-m', 'adding', 'n1', 'b1'])
hgt.hg(['status'],
stdout='''A dir/b2
A dir/dir/b3
A dir/dir/n3
A dir/n2
''')
hgt.hg(['commit', '-m', 'adding', 'dir/dir/n3', 'dir/dir/b3'])
hgt.hg(['status'],
stdout='''A dir/b2
A dir/n2
''')
hgt.hg(['commit', '-m', 'adding', 'dir/b2', 'dir/n2'])
hgt.hg(['status'])
|
|
@@ -1,4 +1,4 @@ - #!/usr/bin/python
+#!/usr/bin/env python
# Test that kbfconvert handles tags properly
|
|
@@ -1,4 +1,4 @@ - #!/usr/bin/python
+#!/usr/bin/env python
# Test that edited bfiles show up as modified
|
@@ -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,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().
|
|
|
|
|
|
|
Loading...