8693e442d7
You may now call terrasync.py with --mode=sync or --mode=check. 'sync' mode is the default and corresponds to terrasync.py's usual behavior. In 'check' mode, terrasync.py never writes to disk and aborts at the first mismatch between local and remote data. The exit status in 'check' mode is: - 0 if the program terminated successfully and no mismatch was found between the local and remote repositories; - 1 in case an error was encountered; - 2 if there was a mismatch between local and remote data. In 'sync' mode, the exit status is: - 0 if the program terminated successfully; - 1 in case an error was encountered. A mismatch in 'check' mode is *not* an error, it is just one of the two expected results. An error is a worse condition (uncaught exception, network retrieval aborted after retrying failed, stuff like that). Additionally, calling terrasync.py with --report causes it to print lists of: - files and dirs that were missing or had mismatching hashes (this is okay in 'sync' mode: these things have been "fixed" in the target directory before the report was printed); - files and dirs that have been found to be orphaned (i.e., found under the target directory but not mentioned in the corresponding .dirindex file). These are the ones removed in 'sync' mode when --remove-orphan is passed. |
||
---|---|---|
.. | ||
demo.py | ||
FGFSDemo.py | ||
FlightGear.py | ||
nasal_api_doc.py | ||
terrasync.py |