Mercurial > hg
diff hgext/convert/subversion.py @ 6557:f2bd49752f0d
merge from crew-stable
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Wed, 16 Apr 2008 12:15:43 +0200 |
parents | 2af1b9de62b3 0bb76d168437 |
children | c9b8d2565b92 |
line wrap: on
line diff
--- a/hgext/convert/subversion.py Wed Apr 16 12:14:24 2008 +0200 +++ b/hgext/convert/subversion.py Wed Apr 16 12:15:43 2008 +0200 @@ -688,7 +688,7 @@ if not copyfrompath: continue copyfrom[path] = ent - self.ui.debug("mark %s came from %s:%d\n" + self.ui.debug("mark %s came from %s:%d\n" % (path, copyfrompath, ent.copyfrom_rev)) children = self._find_children(ent.copyfrom_path, ent.copyfrom_rev) children.sort() @@ -738,7 +738,7 @@ if root_paths: path, ent = root_paths[-1] if ent.copyfrom_path: - # If dir was moved while one of its file was removed + # If dir was moved while one of its file was removed # the log may look like: # A /dir (from /dir:x) # A /dir/a (from /dir/a:y) @@ -746,7 +746,7 @@ # ... # for all remaining children. # Let's take the highest child element from rev as source. - copies = [(p,e) for p,e in orig_paths[:-1] + copies = [(p,e) for p,e in orig_paths[:-1] if isdescendantof(ent.copyfrom_path, e.copyfrom_path)] fromrev = max([e.copyfrom_rev for p,e in copies] + [ent.copyfrom_rev]) branched = True