changeset 1288:1553a4b61221

util: remove unused getmessage function
author Sean Farley <sean.michael.farley@gmail.com>
date Mon, 24 Mar 2014 11:20:52 -0500
parents 3e6013940854
children d29a3f988b74
files hgsubversion/util.py
diffstat 1 files changed, 0 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/util.py
+++ b/hgsubversion/util.py
@@ -251,20 +251,6 @@ def outgoing_common_and_heads(repo, reve
         return ([sourcecx.node()], [sourcerev])
     return ([sourcerev], [sourcerev]) # nothing outgoing
 
-def getmessage(ui, rev):
-    msg = rev.message
-
-    if msg:
-        try:
-            msg.decode('utf-8')
-            return msg
-
-        except UnicodeDecodeError:
-            # ancient svn failed to enforce utf8 encoding
-            return msg.decode('iso-8859-1').encode('utf-8')
-    else:
-        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)))