Mercurial > hgsubversion
diff fetch_command.py @ 197:43d56e973c3c
Replace a few asserts with aborts.
author | Dan Villiom Podlaski Christiansen <danchr@cs.au.dk> |
---|---|
date | Thu, 12 Feb 2009 15:08:53 +0100 |
parents | f48cd62a9de4 |
children | df4611050286 |
line wrap: on
line diff
--- a/fetch_command.py +++ b/fetch_command.py @@ -63,6 +63,10 @@ def fetch_revisions(ui, svn_url, hg_repo initializing_repo = True start = skipto_rev + if initializing_repo and start > 0: + raise merc_util.Abort('Revision skipping at repository initialization ' + 'remains unimplemented.') + # start converting revisions for r in svn.revisions(start=start): valid = False @@ -71,8 +75,6 @@ def fetch_revisions(ui, svn_url, hg_repo if hg_editor._is_path_valid(p): valid = True break - if initializing_repo and start > 0: - assert False, 'This feature not ready yet.' if valid: # got a 502? Try more than once! tries = 0