Commits

Anonymous committed c68fa77

dropped the ivar in favor of a class #is_a? check

  • Participants
  • Parent commits 06ba4d6

Comments (0)

Files changed (1)

File lib/amp/repository/mercurial/revlogs/changelog.rb

       # and start saving any new info to memory/other files. Used when the
       # changelog has to be the last file saved.
       def delay_update
-        return if @delaying
+        return if @opener.is_a? DelayedOpener
         @_real_opener = @opener
         @opener = DelayedOpener.new(@_real_opener, self) # Our fake Opener
         @delay_count = self.size
         @delay_buffer = []
         @delay_name = nil
-        @delaying = true
       end
       
       ##
           src = @_real_opener.join(@index_file+".a")
           dest = @_real_opener.join(@index_file)
           @opener = @_real_opener # switch back to normal mode....
-          @delaying = false
           return FileHelpers.force_rename(src, dest)
         end