hgext/convert/subversion.py
changeset 8210 344751cd8cb8
parent 8209 a1a5a57efe90
child 8214 a2af1d92b913
equal deleted inserted replaced
8209:a1a5a57efe90 8210:344751cd8cb8
   435         try:
   435         try:
   436             for entry in self._getlog([self.tags], start, self.startrev):
   436             for entry in self._getlog([self.tags], start, self.startrev):
   437                 origpaths, revnum, author, date, message = entry
   437                 origpaths, revnum, author, date, message = entry
   438                 copies = [(e.copyfrom_path, e.copyfrom_rev, p) for p, e
   438                 copies = [(e.copyfrom_path, e.copyfrom_rev, p) for p, e
   439                           in origpaths.iteritems() if e.copyfrom_path]
   439                           in origpaths.iteritems() if e.copyfrom_path]
   440                 copies.sort()
       
   441                 # Apply moves/copies from more specific to general
   440                 # Apply moves/copies from more specific to general
   442                 copies.reverse()
   441                 copies.sort(reverse=True)
   443 
   442 
   444                 srctagspath = tagspath
   443                 srctagspath = tagspath
   445                 if copies and copies[-1][2] == tagspath:
   444                 if copies and copies[-1][2] == tagspath:
   446                     # Track tags directory moves
   445                     # Track tags directory moves
   447                     srctagspath = copies.pop()[0]
   446                     srctagspath = copies.pop()[0]