Add keyword; comment backwards compatible import self_initializing_hook
authorChristian Ebert <blacktrash@gmx.net>
Mon, 08 Jan 2007 18:32:46 +0100
branchself_initializing_hook
changeset 82 9bf0f7db5928
parent 81 fd5d3a974ea7
child 83 05e50378c6e8
Add keyword; comment backwards compatible import
hgkw/keyword.py
--- a/hgkw/keyword.py	Mon Jan 08 18:27:18 2007 +0100
+++ b/hgkw/keyword.py	Mon Jan 08 18:32:46 2007 +0100
@@ -1,4 +1,5 @@
 # keyword.py - keyword expansion for mercurial
+# $Id$
 
 '''keyword expansion hack against the grain of a DSCM
 
@@ -138,6 +139,9 @@
     '''pretxncommit hook that collects candidates for keyword expansion
     on commit and expands keywords in working dir.'''
     from mercurial.i18n import gettext as _
+    # above line for backwards compatibility; can be changed to
+    #   from mercurial.i18n import _
+    # some day
     from mercurial import cmdutil, commands
     import sys