# HG changeset patch # User Patrick Mezard # Date 1263847228 -3600 # Node ID e37738d95b27742959b11f008ad712e309d0a67a # Parent ef288fb7f2fe0a50700a5eb5f422636b3347834c editor: remove useless test diff --git a/hgsubversion/editor.py b/hgsubversion/editor.py --- a/hgsubversion/editor.py +++ b/hgsubversion/editor.py @@ -234,13 +234,12 @@ class HgEditor(delta.Editor): self.current.emptybranches[branch] = False if br_path is None or not copyfrom_path: return path - if copyfrom_path: - tag = self.meta.get_path_tag(copyfrom_path) - if tag not in self.meta.tags: - tag = None - if not self.meta.is_path_valid(copyfrom_path): - self.current.missing.add('%s/' % path) - return path + tag = self.meta.get_path_tag(copyfrom_path) + if tag not in self.meta.tags: + tag = None + if not self.meta.is_path_valid(copyfrom_path): + self.current.missing.add('%s/' % path) + return path if tag: ci = self.meta.repo[self.meta.tags[tag]].extra()['convert_revision'] source_rev, source_branch, = self.meta.parse_converted_revision(ci)