[M3commit] CVS Update: cm3

Tony Hosking hosking at cs.purdue.edu
Fri Jan 15 16:04:48 CET 2010


Here's the diff between 1.1 and 1.2, which you committed.  You seem to have changed the meaning.  I don't understand the change.

*** LogManager.m3.~1.1~ Thu Jan 14 13:56:42 2010
--- LogManager.m3.~1.2~ Fri Jan 15 09:59:41 2010
***************
*** 236,241 ****
--- 236,242 ----
  
  PROCEDURE EmptyLog (lm: Default; nm: Pathname.T): BOOLEAN
    RAISES {OSError.E} =
+   VAR log: TEXT;
    BEGIN
      IF NOT lm.recoverable(nm) THEN
        RAISE OSError.E(
***************
*** 243,253 ****
                  Atom.FromText(
                    "no checkpointfile for log in " & nm)));
      END;
!     IF TestFile(lm.logfn(nm)) THEN
!       RETURN FS.Status(nm).size > 0
!     ELSE
!       RETURN TRUE
!     END;
    END EmptyLog;
  
  PROCEDURE Dispose (lm: Default; nm: Pathname.T) RAISES {OSError.E} =
--- 244,251 ----
                  Atom.FromText(
                    "no checkpointfile for log in " & nm)));
      END;
!     log := lm.logfn(nm);
!     RETURN (NOT TestFile(log)) OR (FS.Status(log).size = 0L);
    END EmptyLog;
  
  PROCEDURE Dispose (lm: Default; nm: Pathname.T) RAISES {OSError.E} =


On 15 Jan 2010, at 13:03, Jay Krell wrote:

> CVSROOT:	/usr/cvs
> Changes by:	jkrell at birch.	10/01/15 13:03:10
> 
> Modified files:
> 	cm3/m3-db/stable/src/: LogManager.m3 
> 
> Log message:
> 	something is broken in the history here: put my version back, there is a semantic difference as to which file path is passed to FS.Status and I didn't invent the 'obfuscated' form, though the history is indeed confusing (did somebody mention that cvs and cvsweb don't work well?)




More information about the M3commit mailing list