diff rebuildmeta.py @ 181:e37f9d3fd5e7

remove decorators (compat with python2.3)
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 13 Jan 2009 13:59:50 +0100
parents ba801f44d240
children 57355b0e7bd1
line wrap: on
line diff
--- a/rebuildmeta.py
+++ b/rebuildmeta.py
@@ -6,7 +6,6 @@ from mercurial import node
 import svnwrap
 import util
 
-@util.register_subcommand('rebuildmeta')
 def rebuildmeta(ui, repo, hg_repo_path, args, **opts):
     """Rebuild hgsubversion metadata using values stored in revisions.
     """
@@ -108,6 +107,7 @@ def rebuildmeta(ui, repo, hg_repo_path, 
     tagsinfofile = open(os.path.join(svnmetadir, 'tag_info'), 'w')
     pickle.dump(tagsinfo, tagsinfofile)
     tagsinfofile.close()
+rebuildmeta = util.register_subcommand('rebuildmeta')(rebuildmeta)
 
 
 def determinebranch(branch):