def checkin(self, commit, comment, op, path):
"Check in a new revision - also used to create new masters."
# This is the only manipulation of the branch structure there is.
- if verbose >= DEBUG_BRANCHING:
- print "commit", commit.branch
if not os.path.exists(self.master(path)):
myrev = "1.1"
else:
except OSError:
raise FatalException("Couldn't create working directory.")
repo.fast_import(sys.stdin, progress=verbose>0)
+ lastcommit = None
for event in repo.commits():
+ if verbose >= DEBUG_BRANCHING:
+ if not lastcommit or lastcommit.branch != event.branch:
+ print "commit", event.branch
+ else:
+ print "commit"
+ lastcommit = event
vcs.precommit(event)
for op in event.fileops:
if op.op == "M":