changeset 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 768639283275
files hgsubversion/util.py tests/test_fetch_mappings.py
diffstat 2 files changed, 2 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/util.py
+++ b/hgsubversion/util.py
@@ -150,8 +150,7 @@ def outgoing_revisions(repo, reverse_map
         return outgoing_rev_hashes
 
 def default_commit_msg(ui):
-    return ui.config('hgsubversion', 'defaultmessage',
-                     '...')
+    return ui.config('hgsubversion', 'defaultmessage', '')
 
 def describe_commit(ui, h, b):
     ui.note(' committed to "%s" as %s\n' % ((b or 'default'), node.short(h)))
--- a/tests/test_fetch_mappings.py
+++ b/tests/test_fetch_mappings.py
@@ -311,7 +311,7 @@ class MapTests(test_util.TestBase):
         repo = self._load_fixture_and_fetch('empty-log-message.svndump',
                                             stupid=stupid)
 
-        self.assertEqual(repo['tip'].description(), '...')
+        self.assertEqual(repo['tip'].description(), '')
 
         test_util.rmtree(self.wc_path)
 
@@ -321,14 +321,6 @@ class MapTests(test_util.TestBase):
 
         self.assertEqual(self.repo['tip'].description(), 'blyf')
 
-        test_util.rmtree(self.wc_path)
-
-        ui = self.ui(stupid)
-        ui.setconfig('hgsubversion', 'defaultmessage', '')
-        commands.clone(ui, test_util.fileurl(self.repo_path), self.wc_path)
-
-        self.assertEqual(self.repo['tip'].description(), '')
-
 
     def test_empty_log_message_stupid(self):
         self.test_empty_log_message(True)