SVNSourceCodeManager.st
changeset 1181 61aa6c389562
parent 1180 92753f6cc822
child 1182 38600a7a9203
equal deleted inserted replaced
1180:92753f6cc822 1181:61aa6c389562
   334     If numRevisionsOrNil is notNil, it limits the number of revision records returned -
   334     If numRevisionsOrNil is notNil, it limits the number of revision records returned -
   335      only numRevions of the newest revision infos will be collected.
   335      only numRevions of the newest revision infos will be collected.
   336 
   336 
   337      The returned information is a structure (IdentityDictionary)
   337      The returned information is a structure (IdentityDictionary)
   338      filled with:
   338      filled with:
   339             #container          -> the RCS/CVS container file name 
   339             #container          -> the file name again 
   340             #cvsRoot            -> the CVS root (repository) 
   340             #cvsRoot            -> the CVS root (repository) 
   341             #filename           -> the actual source file name
   341             #filename           -> the actual source file name
   342             #newestRevision     -> the revisionString of the newest revision
   342             #newestRevision     -> the revisionString of the newest revision
   343             #numberOfRevisions  -> the number of revisions in the container (nil for all)
   343             #numberOfRevisions  -> N/A
   344             #revisions          -> collection of per-revision info (see below)
   344             #revisions          -> collection of per-revision info (see below)
   345 
   345 
   346             firstRevOrNil / lastRevOrNil specify from which revisions a logEntry is wanted:
   346             firstRevOrNil / lastRevOrNil specify from which revisions a logEntry is wanted:
   347              -If firstRevOrNil is nil, the first revision is the initial revision
   347              -If firstRevOrNil is nil, the first revision is the initial revision
   348               otherwise, the log starts with that revision.
   348               otherwise, the log starts with that revision.
   356 
   356 
   357               #revision              -> the revision string
   357               #revision              -> the revision string
   358               #author                -> who checked that revision into the repository
   358               #author                -> who checked that revision into the repository
   359               #date                  -> when was it checked in
   359               #date                  -> when was it checked in
   360               #state                 -> the RCS state
   360               #state                 -> the RCS state
   361               #numberOfChangedLines  -> the number of changed line w.r.t the previous
       
   362               #logMessage            -> the checkIn log message
   361               #logMessage            -> the checkIn log message
   363 
   362 
   364             revisions are ordered newest first 
   363             revisions are ordered newest first 
   365             (i.e. the last entry is for the initial revision; the first for the most recent one)
   364             (i.e. the last entry is for the initial revision; the first for the most recent one)
   366             Attention: if state = 'dead' that revision is no longer valid.
   365             Attention: if state = 'dead' that revision is no longer valid.
   399     info at:#container          put: classFileName.         "/ -> the revision string
   398     info at:#container          put: classFileName.         "/ -> the revision string
   400     info at:#cvsRoot            put: branch url asString.   "/ -> the CVS root (repository)
   399     info at:#cvsRoot            put: branch url asString.   "/ -> the CVS root (repository)
   401     info at:#filename           put: classFileName.         "/ -> the actual source file name
   400     info at:#filename           put: classFileName.         "/ -> the actual source file name
   402     info at:#newestRevision     put: log first revision asString. "/-> the revisionString of the newest revision
   401     info at:#newestRevision     put: log first revision asString. "/-> the revisionString of the newest revision
   403     info at:#numberOfRevisions  put: log size.              "/-> the number of revisions in the container (nil for all)
   402     info at:#numberOfRevisions  put: log size.              "/-> the number of revisions in the container (nil for all)
   404     info at:#revisions          put: (log collect:[:entry|
   403     info at:#revisions          
   405 
   404          put: 
   406         | info |
   405         (log collect:[:entry|
   407         info := IdentityDictionary new.
   406             | info |
   408         info at:#revision              put: entry revision asString."/ -> the revision string
   407             info := IdentityDictionary new.
   409         info at:#author                put: entry author."/ -> who checked that revision into the repository
   408             info at:#revision              put: entry revision asString."/ -> the revision string
   410         info at:#date                  put: entry date printString."/ -> when was it checked in
   409             info at:#author                put: entry author."/ -> who checked that revision into the repository
   411         info at:#state                 put: 'Exp'. "/ -> the RCS state
   410             info at:#date                  put: entry date printString."/ -> when was it checked in
   412         info at:#numberOfChangedLines  put: 'N/A'. "/ -> the number of changed line w.r.t the previous
   411             info at:#state                 put: 'Exp'. "/ -> the RCS state
   413         info at:#logMessage            put: entry message."/ -> the checkIn log message.
   412             info at:#logMessage            put: entry message."/ -> the checkIn log message.
   414         info
   413             info
   415     ]).
   414         ]).
   416 
       
   417     
   415     
   418     ^info
   416     ^info
   419     
   417     
   420     "
   418     "
   421         SVNSourceCodeManager revisionLogOf:Array fromRevision:0 toRevision:0.
   419         SVNSourceCodeManager revisionLogOf:Array fromRevision:0 toRevision:0.