svn_command_helper 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/svn_command_helper/version.rb +1 -1
- data/lib/svn_command_helper.rb +10 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5890b52b98e014db46f996ff77076695869e4d1b
|
4
|
+
data.tar.gz: 62e04dd081b29ccdb94ec410d50c4d30b0892be9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0bffc21b4c7dc7fe866e74018aff363757035fa4c3bb243982dad3838206bf3428d8c19162208bb2f9dd0939315da1030cc5e03eb78efc470bbdcf17d0201b9
|
7
|
+
data.tar.gz: 2a2b94a5605dcc175152d8c95a9ef7952285cff7f61b5a95027909e5bf14c37d878dd70acb13c86f2a8dc7157d8fa467ade6e68e450287ebcb370b0123658b72
|
data/lib/svn_command_helper.rb
CHANGED
@@ -254,10 +254,16 @@ module SvnCommandHelper
|
|
254
254
|
options << "-x --ignore-space-change" if ignore_space_change
|
255
255
|
options << "-x --ignore-all-space" if ignore_all_space
|
256
256
|
options << "| grep -v '^ '" if ignore_properties
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
257
|
+
|
258
|
+
diff = cap("svn diff --xml --summarize #{from_uri} #{to_uri} #{options.join(' ')}")
|
259
|
+
REXML::Document.new(diff).elements.collect("/diff/paths/path") do |path|
|
260
|
+
OpenStruct.new({
|
261
|
+
kind: path.attribute("kind").value,
|
262
|
+
item: path.attribute("item").value,
|
263
|
+
props: path.attribute("props").value,
|
264
|
+
path: path.text,
|
265
|
+
})
|
266
|
+
end
|
261
267
|
end
|
262
268
|
|
263
269
|
# copy single transaction
|