Joey Hess
1aacf7ece4
adds sims collection
2024-09-23 13:43:55 -04:00
Joey Hess
7bc8c2bfeb
sim visit as first-class command
...
Allows using it in a sim file.
2024-09-23 13:09:35 -04:00
Joey Hess
6cf9a101b8
sim: Fix size tracking for balanced preferred content
2024-09-23 12:42:32 -04:00
Joey Hess
19b966f0fd
sim: better step
...
On each step, find all the actions that could be done, and pick one of them
to do.
Should detect stability, but that is broken.
2024-09-20 15:23:34 -04:00
Joey Hess
f061ae92fb
sim: implement addtree
2024-09-20 10:34:52 -04:00
Joey Hess
02f0996e25
git-annex sim log
2024-09-17 13:43:11 -04:00
Joey Hess
b85965cb3c
sim: implement dropunwantedfrom
2024-09-17 13:35:35 -04:00
Joey Hess
4c7db31c20
addmulti
2024-09-17 11:22:14 -04:00
Joey Hess
7d27a8ea1a
sim concurrency
2024-09-17 10:37:22 -04:00
Joey Hess
c420ec9364
sim: add action repo sync command
2024-09-16 16:48:21 -04:00
Joey Hess
7e8274c6b7
implemented ActionDropUnwanted
...
Not tested yet. This emulates the same checking that is done when
dropping. Note that when dropping from a special remote it is not able
to make a locked copy.
2024-09-12 10:44:31 -04:00
Joey Hess
f381b457f2
sim file parser and generator
...
The generator doesn't emit the best possible connect commands,
but it does output something valid. Eg, an input like:
connect A <-> B <-> C <-> D
becomes:
connect A <-> B <-> C
connect C <-> D
Also:
connect A -> B <- C
becomes:
connect A -> B
connect C -> B
Which could be improved.
Also disconnect commands are not prettified at all, but probably there's
no reason to.
2024-09-11 15:59:13 -04:00
Joey Hess
84bbbeae9d
started on sim file parser
2024-09-11 11:53:25 -04:00
Joey Hess
64466d8687
add action command to git-annex sim
...
step just picks a random action, and this allows finer control over what
happens in the sim
2024-09-09 16:06:45 -04:00
Joey Hess
a2c0d5e4a9
finish updateSimRepoState
...
Converted maps to use UUID as key.
Also added mincopies to the sim.
2024-09-09 09:37:59 -04:00
Joey Hess
def8095e5f
rethought sim a bit
2024-09-06 12:53:20 -04:00
Joey Hess
84c781d924
documentation for git-annex sim
...
command not implemented yet
2024-09-04 15:03:17 -04:00