sim: add action repo sync command

This commit is contained in:
Joey Hess 2024-09-16 16:48:21 -04:00
parent 2cbd3fb26b
commit c420ec9364
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 23 additions and 8 deletions

View file

@ -163,14 +163,6 @@ as passed to "git annex sim" while a simulation is running.
On each step of the simulation, a simulated repository is selected
at random, and a random action is performed in it.
* `action repo pull remote`
Simulate the equivilant of [[git-annex-pull]](1).
* `action repo push remote`
Simulate the equivilant of [[git-annex-push]](1).
* `action repo getwanted remote`
Simulate the repository getting files it wants from the remote.
@ -197,6 +189,21 @@ as passed to "git annex sim" while a simulation is running.
Simulate the repository pulling the git-annex branch from the remote.
* `action repo pull remote`
Simulate the equivilant of [[git-annex-pull]](1), by combining
the actions gitpull, getwanted, and dropunwanted.
* `action repo push remote`
Simulate the equivilant of [[git-annex-push]](1) by combining
the actions sendwanted, dropunwanted, and gitpush.
* `action repo sync remote`
Simulate the equivilant of [[git-annex-sync]](1) by combining
the actions gitpull, getwanted, sendwanted, dropunwanted, and gitpush.
* `seed N`
Sets the random seed to a given number. Using this should make the