diff fetch_command.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 a336e3e82648
children 47d25d61abfa
line wrap: on
line diff
--- a/fetch_command.py
+++ b/fetch_command.py
@@ -21,7 +21,6 @@ def print_your_svn_is_old_message(ui): #
               "as good a job. You should really upgrade your server.\n")
 
 
-@util.register_subcommand('pull')
 def fetch_revisions(ui, svn_url, hg_repo_path, skipto_rev=0, stupid=None,
                     tag_locations='tags',
                     authors=None,
@@ -107,6 +106,7 @@ def fetch_revisions(ui, svn_url, hg_repo
                     else:
                         raise
     merc_util._encoding = old_encoding
+fetch_revisions = util.register_subcommand('pull')(fetch_revisions)
 
 
 def cleanup_file_handles(svn, count):