Skip to content

v0.2.52..v0.2.53 changeset changeset apply.asciidoc

Garret Voltz edited this page Feb 12, 2020 · 1 revision
diff --git a/docs/commands/changeset-apply.asciidoc b/docs/commands/changeset-apply.asciidoc
index d99b298..4c19b3c 100644
--- a/docs/commands/changeset-apply.asciidoc
+++ b/docs/commands/changeset-apply.asciidoc
@@ -18,26 +18,36 @@ represented by a timestamp that intersect with a specified AOI, the command will
                         when writing the changeset directly to an OSM API database
 * +--stats+           - Output statistics (element, node, way, relation, failure, create, modify, and delete counts)
 * +--progress+        - Display progress as a percent complete while the upload is working
+* +--test-apply+      - Run the changeset-apply command but don't actually apply it to an OSM API
 
 === Usage
 
 --------------------------------------
 changeset-apply (changeset.os*) [changeset2.os* ...] (targetUrl) [--stats] [--progress]
+changeset-apply (changeset.os*) (changeset-output-file.osc) --test-apply [--stats] [--progress]
 changeset-apply (changeset.osc.sql) (targetUrl) [conflictAoi] [conflictTimestamp]
 --------------------------------------
 
 ==== Examples
 
 --------------------------------------
+# Apply 'changeset.osc' to 'localhost' using 'username' and 'password'
 hoot changeset-apply changeset.osc http://username:password@localhost/
 
+# Apply 'changeset.osc', 'changeset-001.osc', and 'changeset-002.osc' to 'localhost' using 'username' and 'password'
 hoot changeset-apply changeset.osc changeset-001.osc changeset-002.osc https://username:password@localhost/
 
+# Apply 'sourcedata.osm' as <create> operations to 'localhost' using 'username' and 'password', display stats and progress
 hoot changeset-apply sourcedata.osm http://username:password@localhost/ --stats --progress
 
+# Test apply 'changeset.osc' output each changeset upload to a different file
+hoot changeset-apply changeset.osc ~/changeset-split.osc --test-apply
+
+# Apply SQL file 'changeset.osc.sql' to 'localhost' using 'username' and 'password' to the database `databaseName'
 hoot changeset-apply changeset.osc.sql osmapidb://username:password@localhost:5432/databaseName
 
-hoot changeset-apply changeset.osc.sql osmapidb://username:password@localhost:5432/databaseName -93.89258,40.96917,-93.60583,41.0425 "2016-05-04 10:15:37.000"-93.89258,40.96917,-93.60583,41.0425
+# Apply SQL file 'changeset.osc.sql' to 'localhost' using 'username' and 'password' to the database `databaseName' with conflict AOI and conflict timestamp
+hoot changeset-apply changeset.osc.sql osmapidb://username:password@localhost:5432/databaseName -93.89258,40.96917,-93.60583,41.0425 "2016-05-04 10:15:37.000"
 --------------------------------------
 
 === See Also
Clone this wiki locally