* @throws HgRepositoryLockException if failed to lock the repo for modifications
* @throws CancelledException if execution of the command was cancelled
*/
public void execute() throws HgException, HgRepositoryLockException, CancelledException {
final HgRepositoryLock wdLock = repo.getWorkingDirLock();
wdLock.acquire();
try {
final ProgressSupport progress = getProgressSupport(null);
final CancelSupport cancellation = getCancelSupport(null, true);
cancellation.checkCancelled();
progress.start(2 + toAdd.size() + toRemove.size());