comparison tests/test_fetch_mappings.py @ 770:4dfc41b15d9a

make the default substition for an empty commit description the empty string
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Sun, 28 Nov 2010 03:53:34 +0100
parents cc1d4aa3ba41
children 86d124a8768e
comparison
equal deleted inserted replaced
769:cc1d4aa3ba41 770:4dfc41b15d9a
309 309
310 def test_empty_log_message(self, stupid=False): 310 def test_empty_log_message(self, stupid=False):
311 repo = self._load_fixture_and_fetch('empty-log-message.svndump', 311 repo = self._load_fixture_and_fetch('empty-log-message.svndump',
312 stupid=stupid) 312 stupid=stupid)
313 313
314 self.assertEqual(repo['tip'].description(), '...') 314 self.assertEqual(repo['tip'].description(), '')
315 315
316 test_util.rmtree(self.wc_path) 316 test_util.rmtree(self.wc_path)
317 317
318 ui = self.ui(stupid) 318 ui = self.ui(stupid)
319 ui.setconfig('hgsubversion', 'defaultmessage', 'blyf') 319 ui.setconfig('hgsubversion', 'defaultmessage', 'blyf')
320 commands.clone(ui, test_util.fileurl(self.repo_path), self.wc_path) 320 commands.clone(ui, test_util.fileurl(self.repo_path), self.wc_path)
321 321
322 self.assertEqual(self.repo['tip'].description(), 'blyf') 322 self.assertEqual(self.repo['tip'].description(), 'blyf')
323 323
324 test_util.rmtree(self.wc_path)
325
326 ui = self.ui(stupid)
327 ui.setconfig('hgsubversion', 'defaultmessage', '')
328 commands.clone(ui, test_util.fileurl(self.repo_path), self.wc_path)
329
330 self.assertEqual(self.repo['tip'].description(), '')
331
332 324
333 def test_empty_log_message_stupid(self): 325 def test_empty_log_message_stupid(self):
334 self.test_empty_log_message(True) 326 self.test_empty_log_message(True)
335 327
336 def suite(): 328 def suite():