comparison tests/test_push_autoprops.py @ 1106:5cb6c95e0283 stable

Merge default and stable so I can do stable releases again.
author Augie Fackler <raf@durin42.com>
date Tue, 11 Feb 2014 12:48:49 -0500
parents 6aad12ea6d9f
children
comparison
equal deleted inserted replaced
1020:b5b1fce26f1f 1106:5cb6c95e0283
6 import test_util 6 import test_util
7 7
8 from hgsubversion import svnwrap 8 from hgsubversion import svnwrap
9 9
10 class PushAutoPropsTests(test_util.TestBase): 10 class PushAutoPropsTests(test_util.TestBase):
11 obsolete_mode_tests = True
12
11 def setUp(self): 13 def setUp(self):
12 test_util.TestBase.setUp(self) 14 test_util.TestBase.setUp(self)
13 repo, self.repo_path = self.load_and_fetch('emptyrepo.svndump') 15 repo, self.repo_path = self.load_and_fetch('emptyrepo.svndump')
14 16
15 def test_push_honors_svn_autoprops(self): 17 def test_push_honors_svn_autoprops(self):
18 "enable-auto-props = yes\n" 20 "enable-auto-props = yes\n"
19 "[auto-props]\n" 21 "[auto-props]\n"
20 "*.py = test:prop=success\n") 22 "*.py = test:prop=success\n")
21 changes = [('test.py', 'test.py', 'echo hallo')] 23 changes = [('test.py', 'test.py', 'echo hallo')]
22 self.commitchanges(changes) 24 self.commitchanges(changes)
23 self.pushrevisions(True) 25 self.pushrevisions()
24 prop_val = test_util.svnpropget( 26 prop_val = test_util.svnpropget(
25 self.repo_path, "trunk/test.py", 'test:prop') 27 self.repo_path, "trunk/test.py", 'test:prop')
26 self.assertEqual('success', prop_val) 28 self.assertEqual('success', prop_val)
27 29
28 30
98 "svn:eol-style=native;svn:executable=true\n") 100 "svn:eol-style=native;svn:executable=true\n")
99 self.assertEqual({ 101 self.assertEqual({
100 'svn:eol-style': 'native', 102 'svn:eol-style': 'native',
101 'svn:executable': 'true'}, 103 'svn:executable': 'true'},
102 props) 104 props)
103
104
105 def suite():
106 return unittest.findTestCases(sys.modules[__name__])
107