| com.atlassian.bitbucket.scm.mirror.ScmMirrorCommandFactory | 
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Creates a command that fetches all branches and tags from the provided
  remote URL. | |||||||||||
| Applies the provided  ref changesin the repository. | |||||||||||
Creates a command that fetches all branches and tags from the provided
 remote URL. The fetched branches and tags overwrite any
 local branches and tags, and local branches and tags that are not present in the remote repository are deleted.
 Starting from 4.11, the command throws an AuthenticationFailedScmException if the fetch fails because of
 authentication issues, or a NotAuthorizedScmException if the fetch fails because of authorization issues.
| parameters | describes what to synchronize | 
|---|---|
| callback | callback to process synchronization details | 
Applies the provided ref changes in the repository. If one
 or more of the updates cannot be performed (e.g. the toHash does not exist in the repository or the fromHash
 does not match the current value in the repository), the command will apply all ref updates that can be safely
 applied, then throw a MirrorUpdateRefsCommandFailedException.
| parameters | describes what ref changes to apply | 
|---|