434 except ValueError: |
434 except ValueError: |
435 key = "" |
435 key = "" |
436 value = line |
436 value = line |
437 if key == "change": |
437 if key == "change": |
438 self.endInitialText = True |
438 self.endInitialText = True |
439 if key in ("change", "branches", "tags", "parents", "user", |
439 if key in ("change", "tags", "parents", "user", "date", |
440 "date", "file_copies", "file_adds", "files_mods", |
440 "file_copies", "file_adds", "files_mods", "file_dels", |
441 "file_dels", "bookmarks", "phase"): |
441 "bookmarks", "phase"): |
442 self.lastLogEntry[key] = value.strip() |
442 self.lastLogEntry[key] = value.strip() |
|
443 elif key == "branches": |
|
444 if value.strip(): |
|
445 self.lastLogEntry[key] = value.strip() |
|
446 else: |
|
447 self.lastLogEntry[key] = "default" |
443 elif key == "description": |
448 elif key == "description": |
444 self.lastLogEntry[key] = [value.strip()] |
449 self.lastLogEntry[key] = [value.strip()] |
445 else: |
450 else: |
446 if self.endInitialText: |
451 if self.endInitialText: |
447 self.lastLogEntry["description"].append(value.strip()) |
452 self.lastLogEntry["description"].append(value.strip()) |