comparison fetch_command.py @ 140:9ffde8662967

util: Add a command to normalize svn urls and use it in a couple of places. Test that it works and prevents failed assertions.
author Augie Fackler <durin42@gmail.com>
date Thu, 11 Dec 2008 20:41:57 -0600
parents 2242dd1163c6
children 6f2d67bf3039
comparison
equal deleted inserted replaced
139:89a737852d33 140:9ffde8662967
26 def fetch_revisions(ui, svn_url, hg_repo_path, skipto_rev=0, stupid=None, 26 def fetch_revisions(ui, svn_url, hg_repo_path, skipto_rev=0, stupid=None,
27 tag_locations='tags', 27 tag_locations='tags',
28 **opts): 28 **opts):
29 """Pull new revisions from Subversion. 29 """Pull new revisions from Subversion.
30 """ 30 """
31 svn_url = util.normalize_url(svn_url)
31 old_encoding = merc_util._encoding 32 old_encoding = merc_util._encoding
32 merc_util._encoding = 'UTF-8' 33 merc_util._encoding = 'UTF-8'
33 skipto_rev=int(skipto_rev) 34 skipto_rev=int(skipto_rev)
34 have_replay = not stupid 35 have_replay = not stupid
35 if have_replay and not callable( 36 if have_replay and not callable(