revertAndPushChanges Method
Revert timeline changes and push the resulting changeset.
Pulls the latest changes, acquires the schema lock, reverts the inclusive range of
changesets [toIndex..current], and pushes the revert as a new changeset. On failure,
follow the behavior specified by arg.inCaseOfFailure, which may discard local changes,
retain local changes, or delete the briefcase.
revertAndPushChanges(arg: RevertChangesArgs): Promise<void>
@throws IModelError with ChangeSetStatus.ApplyError if toIndex is not specified.
@throws IModelError with ChangeSetStatus.HasUncommittedChanges if there are unsaved changes.
@throws IModelError with ChangeSetStatus.HasLocalChanges if there are pending transactions.
| Parameter | Type | Description |
|---|---|---|
| arg | RevertChangesArgs | Arguments specifying the target changeset index, push options, access token, and failure handling behavior. |
Returns - Promise
Defined in
- backend/src/IModelDb.ts Line 4098
Last Updated: 27 May, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.