comparison 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
comparison
equal deleted inserted replaced
175:2412800b1258 176:c4115b3918e9
374 external[p] = entry 374 external[p] = entry
375 375
376 # Register the file changes 376 # Register the file changes
377 for bp, external in branches.iteritems(): 377 for bp, external in branches.iteritems():
378 path = bp + '/.hgsvnexternals' 378 path = bp + '/.hgsvnexternals'
379 self.current_files[path] = external.write() 379 if external:
380 self.current_files_symlink[path] = False 380 self.current_files[path] = external.write()
381 self.current_files_exec[path] = False 381 self.current_files_symlink[path] = False
382 self.current_files_exec[path] = False
383 else:
384 self.delete_file(path)
382 385
383 def commit_current_delta(self): 386 def commit_current_delta(self):
384 if hasattr(self, '_exception_info'): #pragma: no cover 387 if hasattr(self, '_exception_info'): #pragma: no cover
385 traceback.print_exception(*self._exception_info) 388 traceback.print_exception(*self._exception_info)
386 raise ReplayException() 389 raise ReplayException()