296
296
entries_title="Directory")
297
297
self.builder = self.branch.get_commit_builder(self.parents,
298
298
self.config, timestamp, timezone, committer, revprops, rev_id)
299
self._update_builder_with_changes()
300
self._check_pointless()
302
# TODO: Now the new inventory is known, check for conflicts.
303
# ADHB 2006-08-08: If this is done, populate_new_inv should not add
304
# weave lines, because nothing should be recorded until it is known
305
# that commit will succeed.
306
self._set_progress_stage("Saving data locally")
307
self.builder.finish_inventory()
309
# Prompt the user for a commit message if none provided
310
message = message_callback(self)
311
assert isinstance(message, unicode), type(message)
312
self.message = message
313
self._escape_commit_message()
315
# Add revision data to the local branch
316
self.rev_id = self.builder.commit(self.message)
300
self._update_builder_with_changes()
301
self._check_pointless()
303
# TODO: Now the new inventory is known, check for conflicts.
304
# ADHB 2006-08-08: If this is done, populate_new_inv should not add
305
# weave lines, because nothing should be recorded until it is known
306
# that commit will succeed.
307
self._set_progress_stage("Saving data locally")
308
self.builder.finish_inventory()
310
# Prompt the user for a commit message if none provided
311
message = message_callback(self)
312
assert isinstance(message, unicode), type(message)
313
self.message = message
314
self._escape_commit_message()
316
# Add revision data to the local branch
317
self.rev_id = self.builder.commit(self.message)
319
# perhaps this should be done by the CommitBuilder ?
320
self.work_tree.branch.repository.abort_write_group()
318
323
# Upload revision data to the master.
319
324
# this will propagate merged revisions too if needed.
320
325
if self.bound_branch: