Mercurial > hgsubversion
comparison hgsubversion/wrappers.py @ 837:805ef27fbcbe
hgsubversion/*.py: add space after comment symbol #
author | Yonggang Luo <luoyonggang@gmail.com> |
---|---|
date | Mon, 17 Oct 2011 22:44:15 +0800 |
parents | f28e0f54a6ef |
children | 6c4d15d8cfbd |
comparison
equal
deleted
inserted
replaced
836:0cbf9fd89672 | 837:805ef27fbcbe |
---|---|
96 def findoutgoing(repo, dest=None, heads=None, force=False): | 96 def findoutgoing(repo, dest=None, heads=None, force=False): |
97 """show changesets not found in the Subversion repository | 97 """show changesets not found in the Subversion repository |
98 """ | 98 """ |
99 assert dest.capable('subversion') | 99 assert dest.capable('subversion') |
100 # split off #rev; TODO implement --revision/#rev support | 100 # split off #rev; TODO implement --revision/#rev support |
101 #svnurl, revs, checkout = util.parseurl(dest.svnurl, heads) | 101 # svnurl, revs, checkout = util.parseurl(dest.svnurl, heads) |
102 svn = dest.svn | 102 svn = dest.svn |
103 meta = repo.svnmeta(svn.uuid, svn.subdir) | 103 meta = repo.svnmeta(svn.uuid, svn.subdir) |
104 parent = repo.parents()[0].node() | 104 parent = repo.parents()[0].node() |
105 hashes = meta.revmap.hashes() | 105 hashes = meta.revmap.hashes() |
106 return util.outgoing_revisions(repo, hashes, parent) | 106 return util.outgoing_revisions(repo, hashes, parent) |
352 | 352 |
353 meta.save() | 353 meta.save() |
354 converted = True | 354 converted = True |
355 firstrun = False | 355 firstrun = False |
356 | 356 |
357 except svnwrap.SubversionRepoCanNotReplay, e: #pragma: no cover | 357 except svnwrap.SubversionRepoCanNotReplay, e: # pragma: no cover |
358 ui.status('%s\n' % e.message) | 358 ui.status('%s\n' % e.message) |
359 stupidmod.print_your_svn_is_old_message(ui) | 359 stupidmod.print_your_svn_is_old_message(ui) |
360 have_replay = False | 360 have_replay = False |
361 except svnwrap.SubversionException, e: #pragma: no cover | 361 except svnwrap.SubversionException, e: # pragma: no cover |
362 if (e.args[1] == svnwrap.ERR_RA_DAV_REQUEST_FAILED | 362 if (e.args[1] == svnwrap.ERR_RA_DAV_REQUEST_FAILED |
363 and '502' in str(e) | 363 and '502' in str(e) |
364 and tries < 3): | 364 and tries < 3): |
365 tries += 1 | 365 tries += 1 |
366 ui.status('Got a 502, retrying (%s)\n' % tries) | 366 ui.status('Got a 502, retrying (%s)\n' % tries) |