diff hg_delta_editor.py @ 43:af7ac6c03452

Fix a bug with added files from outside branches/trunk/tags.
author Augie Fackler <durin42@gmail.com>
date Mon, 27 Oct 2008 12:33:52 -0500
parents 496c0354019c
children 987e44afa71e
line wrap: on
line diff
--- a/hg_delta_editor.py
+++ b/hg_delta_editor.py
@@ -510,6 +510,9 @@ class HgChangeReceiver(delta.Editor):
                 # TODO(augie) handle this better, actually mark a copy
                 (from_file,
                  from_branch) = self._path_and_branch_for_path(copyfrom_path)
+                if not from_file:
+                    self.missing_plaintexts.add(path)
+                    return
                 ha = self.get_parent_revision(copyfrom_revision + 1,
                                               from_branch)
                 ctx = self.repo.changectx(ha)