# HG changeset patch # User Sean Farley # Date 1395678052 18000 # Node ID 1553a4b612218ff7f909afe2970f07e1df7cfc81 # Parent 3e601394085473c2d610747f88f11799ec3ba49b util: remove unused getmessage function diff --git a/hgsubversion/util.py b/hgsubversion/util.py --- 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)))