Mercurial > hgsubversion
diff __init__.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 | 291925677a9f |
children | 42958d9de864 |
line wrap: on
line diff
--- a/__init__.py +++ b/__init__.py @@ -23,6 +23,7 @@ def svn_fetch(ui, svn_url, hg_repo_path= hg_repo_path = hg.defaultdest(svn_url) + "-hg" ui.status("Assuming destination %s\n" % hg_repo_path) should_update = not os.path.exists(hg_repo_path) + svn_url = util.normalize_url(svn_url) res = fetch_command.fetch_revisions(ui, svn_url, hg_repo_path, **opts) if (res is None or res == 0) and should_update: repo = hg.repository(ui, hg_repo_path)