Mercurial > hg
comparison hgext/convert/subversion.py @ 19468:82c512643bed stable
convert: catch empty origpaths in svn gettags (issue3941)
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 19 Jul 2013 16:45:44 -0500 |
parents | 83973dc1bfe9 |
children | 87f07f70f227 |
comparison
equal
deleted
inserted
replaced
19467:1afe5d3939db | 19468:82c512643bed |
---|---|
481 start = svn.ra.get_latest_revnum(self.ra) | 481 start = svn.ra.get_latest_revnum(self.ra) |
482 stream = self._getlog([self.tags], start, self.startrev) | 482 stream = self._getlog([self.tags], start, self.startrev) |
483 try: | 483 try: |
484 for entry in stream: | 484 for entry in stream: |
485 origpaths, revnum, author, date, message = entry | 485 origpaths, revnum, author, date, message = entry |
486 if not origpaths: | |
487 origpaths = [] | |
486 copies = [(e.copyfrom_path, e.copyfrom_rev, p) for p, e | 488 copies = [(e.copyfrom_path, e.copyfrom_rev, p) for p, e |
487 in origpaths.iteritems() if e.copyfrom_path] | 489 in origpaths.iteritems() if e.copyfrom_path] |
488 # Apply moves/copies from more specific to general | 490 # Apply moves/copies from more specific to general |
489 copies.sort(reverse=True) | 491 copies.sort(reverse=True) |
490 | 492 |