diff hg_delta_editor.py @ 176:c4115b3918e9

Really delete the .hgsvnexternals file when explicitely removed
author Patrick Mezard <pmezard@gmail.com>
date Fri, 02 Jan 2009 15:54:06 -0600
parents f80132c5fea5
children a336e3e82648
line wrap: on
line diff
--- a/hg_delta_editor.py
+++ b/hg_delta_editor.py
@@ -376,9 +376,12 @@ class HgChangeReceiver(delta.Editor):
         # Register the file changes
         for bp, external in branches.iteritems():
             path = bp + '/.hgsvnexternals'
-            self.current_files[path] = external.write()
-            self.current_files_symlink[path] = False
-            self.current_files_exec[path] = False
+            if external:
+                self.current_files[path] = external.write()
+                self.current_files_symlink[path] = False
+                self.current_files_exec[path] = False
+            else:
+                self.delete_file(path)
 
     def commit_current_delta(self):
         if hasattr(self, '_exception_info'):  #pragma: no cover