Show More
@@ -871,6 +871,7 b' class TestPullrequestsView(object):' | |||
|
871 | 871 | {'message': 'new-feature', 'branch': branch_name}, |
|
872 | 872 | ] |
|
873 | 873 | repo = backend_git.create_repo(commits) |
|
874 | repo_name = repo.repo_name | |
|
874 | 875 | commit_ids = backend_git.commit_ids |
|
875 | 876 | |
|
876 | 877 | pull_request = PullRequest() |
@@ -888,13 +889,15 b' class TestPullrequestsView(object):' | |||
|
888 | 889 | Session().add(pull_request) |
|
889 | 890 | Session().commit() |
|
890 | 891 | |
|
892 | pull_request_id = pull_request.pull_request_id | |
|
893 | ||
|
891 | 894 | vcs = repo.scm_instance() |
|
892 | 895 | vcs.remove_ref('refs/heads/{}'.format(branch_name)) |
|
893 | 896 | |
|
894 | 897 | response = self.app.get(route_path( |
|
895 | 898 | 'pullrequest_show', |
|
896 |
repo_name= |
|
|
897 |
pull_request_id= |
|
|
899 | repo_name=repo_name, | |
|
900 | pull_request_id=pull_request_id)) | |
|
898 | 901 | |
|
899 | 902 | assert response.status_int == 200 |
|
900 | 903 |
@@ -834,7 +834,7 b' class VcsBackend(object):' | |||
|
834 | 834 | imc.add(FileNode(filename, content=content)) |
|
835 | 835 | imc.commit( |
|
836 | 836 | message=u'Automatic commit from vcsbackend fixture', |
|
837 | author=u'Automatic') | |
|
837 | author=u'Automatic <automatic@rhodecode.com>') | |
|
838 | 838 | |
|
839 | 839 | def ensure_file(self, filename, content='Test content\n'): |
|
840 | 840 | assert self._cleanup_repos, "Avoid writing into vcs_test repos" |
@@ -869,7 +869,7 b' def _add_commits_to_repo(vcs_repo, commi' | |||
|
869 | 869 | |
|
870 | 870 | commit = imc.commit( |
|
871 | 871 | message=message, |
|
872 | author=unicode(commit.get('author', 'Automatic')), | |
|
872 | author=unicode(commit.get('author', 'Automatic <automatic@rhodecode.com>')), | |
|
873 | 873 | date=commit.get('date'), |
|
874 | 874 | branch=commit.get('branch'), |
|
875 | 875 | parents=parents) |
@@ -425,13 +425,13 b' def commit_change(' | |||
|
425 | 425 | message=message, |
|
426 | 426 | nodes=nodes, |
|
427 | 427 | parent_commit=_commit, |
|
428 | author=TEST_USER_ADMIN_LOGIN, | |
|
428 | author='{} <admin@rhodecode.com>'.format(TEST_USER_ADMIN_LOGIN), | |
|
429 | 429 | ) |
|
430 | 430 | else: |
|
431 | 431 | commit = ScmModel().commit_change( |
|
432 | 432 | repo=repo.scm_instance(), repo_name=repo.repo_name, |
|
433 | 433 | commit=parent, user=TEST_USER_ADMIN_LOGIN, |
|
434 | author=TEST_USER_ADMIN_LOGIN, | |
|
434 | author='{} <admin@rhodecode.com>'.format(TEST_USER_ADMIN_LOGIN), | |
|
435 | 435 | message=message, |
|
436 | 436 | content=content, |
|
437 | 437 | f_path=filename |
@@ -59,7 +59,7 b' class TestBranches(BackendTestMixin):' | |||
|
59 | 59 | content='Documentation\n')) |
|
60 | 60 | foobar_tip = self.imc.commit( |
|
61 | 61 | message=u'New branch: foobar', |
|
62 | author=u'joe', | |
|
62 | author=u'joe <joe@rhodecode.com>', | |
|
63 | 63 | branch='foobar', |
|
64 | 64 | ) |
|
65 | 65 | assert 'foobar' in self.repo.branches |
@@ -73,7 +73,7 b' class TestBranches(BackendTestMixin):' | |||
|
73 | 73 | content='Documentation\n')) |
|
74 | 74 | foobar_tip = self.imc.commit( |
|
75 | 75 | message=u'New branch: foobar', |
|
76 | author=u'joe', | |
|
76 | author=u'joe <joe@rhodecode.com>', | |
|
77 | 77 | branch='foobar', |
|
78 | 78 | parents=[tip], |
|
79 | 79 | ) |
@@ -82,14 +82,14 b' class TestBranches(BackendTestMixin):' | |||
|
82 | 82 | content='Documentation\nand more...\n')) |
|
83 | 83 | newtip = self.imc.commit( |
|
84 | 84 | message=u'At default branch', |
|
85 | author=u'joe', | |
|
85 | author=u'joe <joe@rhodecode.com>', | |
|
86 | 86 | branch=foobar_tip.branch, |
|
87 | 87 | parents=[foobar_tip], |
|
88 | 88 | ) |
|
89 | 89 | |
|
90 | 90 | newest_tip = self.imc.commit( |
|
91 | 91 | message=u'Merged with %s' % foobar_tip.raw_id, |
|
92 | author=u'joe', | |
|
92 | author=u'joe <joe@rhodecode.com>', | |
|
93 | 93 | branch=self.backend_class.DEFAULT_BRANCH_NAME, |
|
94 | 94 | parents=[newtip, foobar_tip], |
|
95 | 95 | ) |
@@ -101,7 +101,7 b' class TestBranches(BackendTestMixin):' | |||
|
101 | 101 | def test_branch_with_slash_in_name(self): |
|
102 | 102 | self.imc.add(FileNode('extrafile', content='Some data\n')) |
|
103 | 103 | self.imc.commit( |
|
104 | u'Branch with a slash!', author=u'joe', | |
|
104 | u'Branch with a slash!', author=u'joe <joe@rhodecode.com>', | |
|
105 | 105 | branch='issue/123') |
|
106 | 106 | assert 'issue/123' in self.repo.branches |
|
107 | 107 | |
@@ -109,11 +109,11 b' class TestBranches(BackendTestMixin):' | |||
|
109 | 109 | def test_branch_with_slash_in_name_and_similar_without(self): |
|
110 | 110 | self.imc.add(FileNode('extrafile', content='Some data\n')) |
|
111 | 111 | self.imc.commit( |
|
112 | u'Branch with a slash!', author=u'joe', | |
|
112 | u'Branch with a slash!', author=u'joe <joe@rhodecode.com>', | |
|
113 | 113 | branch='issue/123') |
|
114 | 114 | self.imc.add(FileNode('extrafile II', content='Some data\n')) |
|
115 | 115 | self.imc.commit( |
|
116 | u'Branch without a slash...', author=u'joe', | |
|
116 | u'Branch without a slash...', author=u'joe <joe@rhodecode.com>', | |
|
117 | 117 | branch='123') |
|
118 | 118 | assert 'issue/123' in self.repo.branches |
|
119 | 119 | assert '123' in self.repo.branches |
@@ -76,7 +76,7 b' class TestCommitsInNonEmptyRepo(BackendT' | |||
|
76 | 76 | content='Documentation\n')) |
|
77 | 77 | foobar_tip = self.imc.commit( |
|
78 | 78 | message=u'New branch: foobar', |
|
79 | author=u'joe', | |
|
79 | author=u'joe <joe@rhodecode.com>', | |
|
80 | 80 | branch='foobar', |
|
81 | 81 | ) |
|
82 | 82 | assert 'foobar' in self.repo.branches |
@@ -92,7 +92,7 b' class TestCommitsInNonEmptyRepo(BackendT' | |||
|
92 | 92 | content='Documentation\n')) |
|
93 | 93 | foobar_tip = self.imc.commit( |
|
94 | 94 | message=u'New branch: foobar', |
|
95 | author=u'joe', | |
|
95 | author=u'joe <joe@rhodecode.com>', | |
|
96 | 96 | branch='foobar', |
|
97 | 97 | parents=[tip], |
|
98 | 98 | ) |
@@ -100,14 +100,14 b' class TestCommitsInNonEmptyRepo(BackendT' | |||
|
100 | 100 | content='Documentation\nand more...\n')) |
|
101 | 101 | newtip = self.imc.commit( |
|
102 | 102 | message=u'At default branch', |
|
103 | author=u'joe', | |
|
103 | author=u'joe <joe@rhodecode.com>', | |
|
104 | 104 | branch=foobar_tip.branch, |
|
105 | 105 | parents=[foobar_tip], |
|
106 | 106 | ) |
|
107 | 107 | |
|
108 | 108 | newest_tip = self.imc.commit( |
|
109 | 109 | message=u'Merged with %s' % foobar_tip.raw_id, |
|
110 | author=u'joe', | |
|
110 | author=u'joe <joe@rhodecode.com>', | |
|
111 | 111 | branch=self.backend_class.DEFAULT_BRANCH_NAME, |
|
112 | 112 | parents=[newtip, foobar_tip], |
|
113 | 113 | ) |
@@ -134,28 +134,28 b' class TestCommitsInNonEmptyRepo(BackendT' | |||
|
134 | 134 | self.imc.add(FileNode('readme.txt', content='Document\n')) |
|
135 | 135 | initial = self.imc.commit( |
|
136 | 136 | message=u'Initial commit', |
|
137 | author=u'joe', | |
|
137 | author=u'joe <joe@rhodecode.com>', | |
|
138 | 138 | parents=[org_tip], |
|
139 | 139 | branch=DEFAULT_BRANCH,) |
|
140 | 140 | |
|
141 | 141 | self.imc.add(FileNode('newdoc.txt', content='foobar\n')) |
|
142 | 142 | docs_branch_commit1 = self.imc.commit( |
|
143 | 143 | message=u'New branch: docs', |
|
144 | author=u'joe', | |
|
144 | author=u'joe <joe@rhodecode.com>', | |
|
145 | 145 | parents=[initial], |
|
146 | 146 | branch=TEST_BRANCH,) |
|
147 | 147 | |
|
148 | 148 | self.imc.add(FileNode('newdoc2.txt', content='foobar2\n')) |
|
149 | 149 | docs_branch_commit2 = self.imc.commit( |
|
150 | 150 | message=u'New branch: docs2', |
|
151 | author=u'joe', | |
|
151 | author=u'joe <joe@rhodecode.com>', | |
|
152 | 152 | parents=[docs_branch_commit1], |
|
153 | 153 | branch=TEST_BRANCH,) |
|
154 | 154 | |
|
155 | 155 | self.imc.add(FileNode('newfile', content='hello world\n')) |
|
156 | 156 | self.imc.commit( |
|
157 | 157 | message=u'Back in default branch', |
|
158 | author=u'joe', | |
|
158 | author=u'joe <joe@rhodecode.com>', | |
|
159 | 159 | parents=[initial], |
|
160 | 160 | branch=DEFAULT_BRANCH,) |
|
161 | 161 |
@@ -586,7 +586,7 b' TODO: To be written...' | |||
|
586 | 586 | imc.add(FileNode('file_x', content=source_repo.name)) |
|
587 | 587 | imc.commit( |
|
588 | 588 | message=u'Automatic commit from repo merge test', |
|
589 | author=u'Automatic') | |
|
589 | author=u'Automatic <automatic@rhodecode.com>') | |
|
590 | 590 | target_commit = target_repo.get_commit() |
|
591 | 591 | source_commit = source_repo.get_commit() |
|
592 | 592 | default_branch = target_repo.DEFAULT_BRANCH_NAME |
@@ -630,7 +630,7 b' TODO: To be written...' | |||
|
630 | 630 | imc.add(FileNode('file_x', content=source_repo.name)) |
|
631 | 631 | imc.commit( |
|
632 | 632 | message=u'Automatic commit from repo merge test', |
|
633 | author=u'Automatic') | |
|
633 | author=u'Automatic <automatic@rhodecode.com>') | |
|
634 | 634 | target_commit = target_repo.get_commit() |
|
635 | 635 | source_commit = source_repo.get_commit() |
|
636 | 636 | default_branch = target_repo.DEFAULT_BRANCH_NAME |
@@ -669,7 +669,7 b' TODO: To be written...' | |||
|
669 | 669 | commits = list(target_repo.get_commits()) |
|
670 | 670 | imc.commit( |
|
671 | 671 | message=u'Automatic commit from repo merge test', |
|
672 | author=u'Automatic', parents=commits[0:1]) | |
|
672 | author=u'Automatic <automatic@rhodecode.com>', parents=commits[0:1]) | |
|
673 | 673 | |
|
674 | 674 | target_commit = target_repo.get_commit() |
|
675 | 675 | source_commit = source_repo.get_commit() |
@@ -702,7 +702,7 b' TODO: To be written...' | |||
|
702 | 702 | imc.add(FileNode('file_x', content=source_repo.name)) |
|
703 | 703 | imc.commit( |
|
704 | 704 | message=u'Automatic commit from repo merge test', |
|
705 | author=u'Automatic') | |
|
705 | author=u'Automatic <automatic@rhodecode.com>') | |
|
706 | 706 | target_commit = target_repo.get_commit() |
|
707 | 707 | source_commit = source_repo.get_commit() |
|
708 | 708 |
@@ -116,7 +116,7 b' class TestInMemoryCommit(BackendTestMixi' | |||
|
116 | 116 | def commit(self, branch=None): |
|
117 | 117 | self.old_commit_count = len(self.repo.commit_ids) |
|
118 | 118 | self.commit_message = u'Test commit with unicode: żółwik' |
|
119 |
self.commit_author = u |
|
|
119 | self.commit_author = u'{} <foo@email.com>'.format(self.__class__.__name__) | |
|
120 | 120 | self.commit = self.imc.commit( |
|
121 | 121 | message=self.commit_message, author=self.commit_author, |
|
122 | 122 | branch=branch) |
@@ -127,7 +127,7 b' class TestInMemoryCommit(BackendTestMixi' | |||
|
127 | 127 | FileNode('foo/README.txt', content='readme!'), |
|
128 | 128 | ] |
|
129 | 129 | self.imc.add(*to_add) |
|
130 | commit = self.imc.commit(u'Initial', u'joe.doe@example.com') | |
|
130 | commit = self.imc.commit(u'Initial', u'joe doe <joe.doe@example.com>') | |
|
131 | 131 | assert isinstance(commit.get_node('foo'), DirNode) |
|
132 | 132 | assert isinstance(commit.get_node('foo/bar'), DirNode) |
|
133 | 133 | self.assert_nodes_in_commit(commit, to_add) |
@@ -141,7 +141,7 b' class TestInMemoryCommit(BackendTestMixi' | |||
|
141 | 141 | FileNode('foobar/barbaz', content='foo'), |
|
142 | 142 | ] |
|
143 | 143 | self.imc.add(*to_add) |
|
144 | commit = self.imc.commit(u'Another', u'joe.doe@example.com') | |
|
144 | commit = self.imc.commit(u'Another', u'joe doe <joe.doe@example.com>') | |
|
145 | 145 | self.assert_nodes_in_commit(commit, to_add) |
|
146 | 146 | |
|
147 | 147 | def test_add_raise_already_added(self): |
@@ -153,20 +153,20 b' class TestInMemoryCommit(BackendTestMixi' | |||
|
153 | 153 | def test_check_integrity_raise_already_exist(self): |
|
154 | 154 | node = FileNode('foobar', content='baz') |
|
155 | 155 | self.imc.add(node) |
|
156 |
self.imc.commit(message=u'Added foobar', author=u |
|
|
156 | self.imc.commit(message=u'Added foobar', author=u'{} <foo@bar.com>'.format(self)) | |
|
157 | 157 | self.imc.add(node) |
|
158 | 158 | with pytest.raises(NodeAlreadyExistsError): |
|
159 |
self.imc.commit(message='new message', author= |
|
|
159 | self.imc.commit(message='new message', author=u'{} <foo@bar.com>'.format(self)) | |
|
160 | 160 | |
|
161 | 161 | def test_change(self): |
|
162 | 162 | self.imc.add(FileNode('foo/bar/baz', content='foo')) |
|
163 | 163 | self.imc.add(FileNode('foo/fbar', content='foobar')) |
|
164 | tip = self.imc.commit(u'Initial', u'joe.doe@example.com') | |
|
164 | tip = self.imc.commit(u'Initial', u'joe doe <joe.doe@example.com>') | |
|
165 | 165 | |
|
166 | 166 | # Change node's content |
|
167 | 167 | node = FileNode('foo/bar/baz', content='My **changed** content') |
|
168 | 168 | self.imc.change(node) |
|
169 | self.imc.commit(u'Changed %s' % node.path, u'joe.doe@example.com') | |
|
169 | self.imc.commit(u'Changed %s' % node.path, u'joe doe <joe.doe@example.com>') | |
|
170 | 170 | |
|
171 | 171 | newtip = self.repo.get_commit() |
|
172 | 172 | assert tip != newtip |
@@ -181,19 +181,19 b' class TestInMemoryCommit(BackendTestMixi' | |||
|
181 | 181 | for node in to_add: |
|
182 | 182 | self.imc.add(node) |
|
183 | 183 | |
|
184 | tip = self.imc.commit(u'Initial', u'joe.doe@example.com') | |
|
184 | tip = self.imc.commit(u'Initial', u'joe doe <joe.doe@example.com>') | |
|
185 | 185 | |
|
186 | 186 | # Change node's content |
|
187 | 187 | node = FileNode('żółwik/zwierzątko', content='My **changed** content') |
|
188 | 188 | self.imc.change(node) |
|
189 | 189 | self.imc.commit(u'Changed %s' % safe_unicode(node.path), |
|
190 | u'joe.doe@example.com') | |
|
190 | author=u'joe doe <joe.doe@example.com>') | |
|
191 | 191 | |
|
192 | 192 | node_uni = FileNode( |
|
193 | 193 | u'żółwik/zwierzątko_uni', content=u'My **changed** content') |
|
194 | 194 | self.imc.change(node_uni) |
|
195 | 195 | self.imc.commit(u'Changed %s' % safe_unicode(node_uni.path), |
|
196 | u'joe.doe@example.com') | |
|
196 | author=u'joe doe <joe.doe@example.com>') | |
|
197 | 197 | |
|
198 | 198 | newtip = self.repo.get_commit() |
|
199 | 199 | assert tip != newtip |
@@ -209,18 +209,16 b' class TestInMemoryCommit(BackendTestMixi' | |||
|
209 | 209 | def test_check_integrity_change_raise_node_does_not_exist(self): |
|
210 | 210 | node = FileNode('foobar', content='baz') |
|
211 | 211 | self.imc.add(node) |
|
212 |
self.imc.commit(message=u'Added foobar', author=u |
|
|
212 | self.imc.commit(message=u'Added foobar', author=u'{} <foo@bar.com>'.format(self)) | |
|
213 | 213 | node = FileNode('not-foobar', content='') |
|
214 | 214 | self.imc.change(node) |
|
215 | 215 | with pytest.raises(NodeDoesNotExistError): |
|
216 | self.imc.commit( | |
|
217 | message='Changed not existing node', | |
|
218 | author=str(self)) | |
|
216 | self.imc.commit(message='Changed not existing node', author=u'{} <foo@bar.com>'.format(self)) | |
|
219 | 217 | |
|
220 | 218 | def test_change_raise_node_already_changed(self): |
|
221 | 219 | node = FileNode('foobar', content='baz') |
|
222 | 220 | self.imc.add(node) |
|
223 |
self.imc.commit(message=u'Added foobar', author=u |
|
|
221 | self.imc.commit(message=u'Added foobar', author=u'{} <foo@bar.com>'.format(self)) | |
|
224 | 222 | node = FileNode('foobar', content='more baz') |
|
225 | 223 | self.imc.change(node) |
|
226 | 224 | with pytest.raises(NodeAlreadyChangedError): |
@@ -234,12 +232,12 b' class TestInMemoryCommit(BackendTestMixi' | |||
|
234 | 232 | with pytest.raises(NodeNotChangedError): |
|
235 | 233 | self.imc.commit( |
|
236 | 234 | message=u'Trying to mark node as changed without touching it', |
|
237 |
author=u |
|
|
235 | author=u'{} <foo@bar.com>'.format(self)) | |
|
238 | 236 | |
|
239 | 237 | def test_change_raise_node_already_removed(self): |
|
240 | 238 | node = FileNode('foobar', content='baz') |
|
241 | 239 | self.imc.add(node) |
|
242 |
self.imc.commit(message=u'Added foobar', author=u |
|
|
240 | self.imc.commit(message=u'Added foobar', author=u'{} <foo@bar.com>'.format(self)) | |
|
243 | 241 | self.imc.remove(FileNode('foobar')) |
|
244 | 242 | with pytest.raises(NodeAlreadyRemovedError): |
|
245 | 243 | self.imc.change(node) |
@@ -252,7 +250,7 b' class TestInMemoryCommit(BackendTestMixi' | |||
|
252 | 250 | assert node.content == tip.get_node(node.path).content |
|
253 | 251 | self.imc.remove(node) |
|
254 | 252 | self.imc.commit( |
|
255 |
message=u'Removed %s' % node.path, author=u |
|
|
253 | message=u'Removed %s' % node.path, author=u'{} <foo@bar.com>'.format(self)) | |
|
256 | 254 | |
|
257 | 255 | newtip = self.repo.get_commit() |
|
258 | 256 | assert tip != newtip |
@@ -263,10 +261,10 b' class TestInMemoryCommit(BackendTestMixi' | |||
|
263 | 261 | def test_remove_last_file_from_directory(self): |
|
264 | 262 | node = FileNode('omg/qwe/foo/bar', content='foobar') |
|
265 | 263 | self.imc.add(node) |
|
266 | self.imc.commit(u'added', u'joe doe') | |
|
264 | self.imc.commit(u'added', author=u'joe doe <joe@doe.com>') | |
|
267 | 265 | |
|
268 | 266 | self.imc.remove(node) |
|
269 | tip = self.imc.commit(u'removed', u'joe doe') | |
|
267 | tip = self.imc.commit(u'removed', u'joe doe <joe@doe.com>') | |
|
270 | 268 | with pytest.raises(NodeDoesNotExistError): |
|
271 | 269 | tip.get_node('omg/qwe/foo/bar') |
|
272 | 270 | |
@@ -275,7 +273,7 b' class TestInMemoryCommit(BackendTestMixi' | |||
|
275 | 273 | with pytest.raises(NodeDoesNotExistError): |
|
276 | 274 | self.imc.commit( |
|
277 | 275 | message='Trying to remove node at empty repository', |
|
278 |
author= |
|
|
276 | author=u'{} <foo@bar.com>'.format(self)) | |
|
279 | 277 | |
|
280 | 278 | def test_check_integrity_remove_raise_node_does_not_exist(self, nodes): |
|
281 | 279 | self.test_add(nodes) # Performs first commit |
@@ -285,7 +283,7 b' class TestInMemoryCommit(BackendTestMixi' | |||
|
285 | 283 | with pytest.raises(NodeDoesNotExistError): |
|
286 | 284 | self.imc.commit( |
|
287 | 285 | message=u'Trying to remove not existing node', |
|
288 |
author=u |
|
|
286 | author=u'{} <foo@bar.com>'.format(self)) | |
|
289 | 287 | |
|
290 | 288 | def test_remove_raise_node_already_removed(self, nodes): |
|
291 | 289 | self.test_add(nodes) # Performs first commit |
@@ -318,7 +316,7 b' class TestInMemoryCommit(BackendTestMixi' | |||
|
318 | 316 | content = 'foobar\n' * x |
|
319 | 317 | node = FileNode(fname, content=content) |
|
320 | 318 | self.imc.add(node) |
|
321 | commit = self.imc.commit(u"Commit no. %s" % (x + 1), author=u'vcs') | |
|
319 | commit = self.imc.commit(u"Commit no. %s" % (x + 1), author=u'vcs <foo@bar.com>') | |
|
322 | 320 | assert last != commit |
|
323 | 321 | last = commit |
|
324 | 322 | |
@@ -335,7 +333,7 b' class TestInMemoryCommit(BackendTestMixi' | |||
|
335 | 333 | date = datetime.datetime(1985, 1, 30, 1, 45) |
|
336 | 334 | commit = self.imc.commit( |
|
337 | 335 | u"Committed at time when I was born ;-)", |
|
338 |
author=u' |
|
|
336 | author=u'{} <foo@bar.com>'.format(self), date=date) | |
|
339 | 337 | |
|
340 | 338 | assert commit.date == local_dt_to_utc(date) |
|
341 | 339 |
@@ -279,7 +279,7 b' class TestRepositoryMerge(object):' | |||
|
279 | 279 | imc.add(FileNode('file_x', content=self.source_repo.name)) |
|
280 | 280 | imc.commit( |
|
281 | 281 | message=u'Automatic commit from repo merge test', |
|
282 | author=u'Automatic') | |
|
282 | author=u'Automatic <automatic@rhodecode.com>') | |
|
283 | 283 | self.target_commit = self.target_repo.get_commit() |
|
284 | 284 | self.source_commit = self.source_repo.get_commit() |
|
285 | 285 | # This only works for Git and Mercurial |
@@ -58,7 +58,7 b' def test_git_push_with_small_push_buffer' | |||
|
58 | 58 | repo.in_memory_commit.add(FileNode('readme.md', content='## Hello')) |
|
59 | 59 | repo.in_memory_commit.commit( |
|
60 | 60 | message='Commit on branch Master', |
|
61 | author='Automatic test', | |
|
61 | author='Automatic test <automatic@rhodecode.com>', | |
|
62 | 62 | branch='master') |
|
63 | 63 | |
|
64 | 64 | repo_cmd = Command(repo.path) |
@@ -50,7 +50,7 b' class TestVCSOperationsSpecial(object):' | |||
|
50 | 50 | repo.in_memory_commit.add(FileNode('file', content='')) |
|
51 | 51 | repo.in_memory_commit.commit( |
|
52 | 52 | message='Commit on branch test', |
|
53 | author='Automatic test', | |
|
53 | author='Automatic test <automatic@rhodecode.com>', | |
|
54 | 54 | branch='test') |
|
55 | 55 | |
|
56 | 56 | repo_cmd = Command(repo.path) |
@@ -92,7 +92,7 b' class TestVCSOperationsSpecial(object):' | |||
|
92 | 92 | repo.in_memory_commit.add(FileNode('readme.md', content='## Hello')) |
|
93 | 93 | repo.in_memory_commit.commit( |
|
94 | 94 | message='Commit on branch Master', |
|
95 | author='Automatic test', | |
|
95 | author='Automatic test <automatic@rhodecode.com>', | |
|
96 | 96 | branch='master') |
|
97 | 97 | |
|
98 | 98 | repo_cmd = Command(repo.path) |
@@ -109,7 +109,7 b' class TestVCSOperationsSpecial(object):' | |||
|
109 | 109 | repo.in_memory_commit.add(FileNode('setup.py', content='print\n')) |
|
110 | 110 | repo.in_memory_commit.commit( |
|
111 | 111 | message='Commit2 on branch Master', |
|
112 | author='Automatic test2', | |
|
112 | author='Automatic test2 <automatic@rhodecode.com>', | |
|
113 | 113 | branch='master') |
|
114 | 114 | |
|
115 | 115 | repo_cmd = Command(repo.path) |
@@ -124,7 +124,7 b' class TestVCSOperationsSpecial(object):' | |||
|
124 | 124 | repo.in_memory_commit.add(FileNode('feature1.py', content='## Hello world')) |
|
125 | 125 | repo.in_memory_commit.commit( |
|
126 | 126 | message='Commit on branch feature', |
|
127 | author='Automatic test', | |
|
127 | author='Automatic test <automatic@rhodecode.com>', | |
|
128 | 128 | branch='feature') |
|
129 | 129 | |
|
130 | 130 | repo_cmd = Command(repo.path) |
General Comments 0
You need to be logged in to leave comments.
Login now