diff hg_delta_editor.py @ 111:5497d1264b4d

fetch_command: Fix mis-converted executable when svn:executable was set to the empty string.
author Augie Fackler <durin42@gmail.com>
date Tue, 25 Nov 2008 09:45:38 -0600
parents 0d3a2a7cefa3
children 30580c05dccc
line wrap: on
line diff
--- a/hg_delta_editor.py
+++ b/hg_delta_editor.py
@@ -627,9 +627,9 @@ class HgChangeReceiver(delta.Editor):
     @stash_exception_on_self
     def change_file_prop(self, file_baton, name, value, pool=None):
         if name == 'svn:executable':
-            self.current_files_exec[self.current_file] = bool(value)
+            self.current_files_exec[self.current_file] = bool(value is not None)
         elif name == 'svn:special':
-            self.current_files_symlink[self.current_file] = bool(value)
+            self.current_files_symlink[self.current_file] = bool(value is not None)
 
     @stash_exception_on_self
     def open_directory(self, path, parent_baton, base_revision, dir_pool=None):