Changeset 94 in tailor
- Timestamp:
- 07/16/04 17:36:39 (9 years ago)
- Hash name:
- 20040716153639-97f81-60e2b69eaa75bcb07f05b61e78d77411f25dd2b3
- File:
-
- 1 edited
-
vcpx/cvs.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/cvs.py
r93 r94 185 185 186 186 state = info[2].strip()[7:] 187 188 # Fourth element, if present and like "lines +x -y", indicates 189 # this is a change to an existing file. Otherwise its a new 190 # one. 191 192 newentry = not info[3].strip().startswith('lines: ') 187 193 188 194 # The next line may be either the first of the changelog or a … … 207 213 changelog = '\n'.join(mesg) 208 214 209 return (date, author, changelog, entry, rev, state )215 return (date, author, changelog, entry, rev, state, newentry) 210 216 211 217 def __parseCvsLog(self, log): … … 232 238 selected = selected.strip() 233 239 234 # If the log shows all changes to the entry, than it's235 # a new one236 237 newentry = total.split(':')[1] == selected.split(':')[1]238 239 240 l = log.readline() 240 241 while l and l <> '----------------------------\n': … … 243 244 cs = self.__parseRevision(entry, log) 244 245 while cs: 245 date,author,changelog,e,rev,state = cs246 date,author,changelog,e,rev,state,newentry = cs 246 247 247 248 last = self.__collect(date, author, changelog, e, rev) 248 249 if state == 'dead': 249 250 last.action_kind = last.DELETED 251 elif newentry: 252 last.action_kind = last.ADDED 250 253 else: 251 254 last.action_kind = last.UPDATED 252 255 253 256 cs = self.__parseRevision(entry, log) 254 255 if newentry:256 last.action_kind = last.ADDED257 257 258 258
Note: See TracChangeset
for help on using the changeset viewer.
