Mercurial > hgsubversion
comparison 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 |
comparison
equal
deleted
inserted
replaced
180:3f1e8a5ec9dd | 181:e37f9d3fd5e7 |
---|---|
19 def print_your_svn_is_old_message(ui): #pragma: no cover | 19 def print_your_svn_is_old_message(ui): #pragma: no cover |
20 ui.status("In light of that, I'll fall back and do diffs, but it won't do " | 20 ui.status("In light of that, I'll fall back and do diffs, but it won't do " |
21 "as good a job. You should really upgrade your server.\n") | 21 "as good a job. You should really upgrade your server.\n") |
22 | 22 |
23 | 23 |
24 @util.register_subcommand('pull') | |
25 def fetch_revisions(ui, svn_url, hg_repo_path, skipto_rev=0, stupid=None, | 24 def fetch_revisions(ui, svn_url, hg_repo_path, skipto_rev=0, stupid=None, |
26 tag_locations='tags', | 25 tag_locations='tags', |
27 authors=None, | 26 authors=None, |
28 filemap=None, | 27 filemap=None, |
29 **opts): | 28 **opts): |
105 tries += 1 | 104 tries += 1 |
106 ui.status('Got a 502, retrying (%s)\n' % tries) | 105 ui.status('Got a 502, retrying (%s)\n' % tries) |
107 else: | 106 else: |
108 raise | 107 raise |
109 merc_util._encoding = old_encoding | 108 merc_util._encoding = old_encoding |
109 fetch_revisions = util.register_subcommand('pull')(fetch_revisions) | |
110 | 110 |
111 | 111 |
112 def cleanup_file_handles(svn, count): | 112 def cleanup_file_handles(svn, count): |
113 if count % 50 == 0: | 113 if count % 50 == 0: |
114 svn.init_ra_and_client() | 114 svn.init_ra_and_client() |