Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diff does not contain info about type #149

Closed
bystrzak opened this issue Feb 25, 2020 · 1 comment
Closed

Diff does not contain info about type #149

bystrzak opened this issue Feb 25, 2020 · 1 comment

Comments

@bystrzak
Copy link

bystrzak commented Feb 25, 2020

Before reworking diff in e14cecc information about the type of the element diff referred to was provided, e.g. D for directories. It makes it difficult to detect when a tracked element was added or removed.

@dsoprea
Copy link
Owner

dsoprea commented Feb 29, 2020

I'm assuming that you're referring to the "kind" information. The information shouldn't be fundamentally different from before, though slightly differently structured. The svn-diff only provides the kind information when called with "--summary":

$ svn diff -r 1:2 --summarize --xml
<?xml version="1.0" encoding="UTF-8"?>
<diff>
<paths>
<path
   item="added"
   props="none"
   kind="file">testdir2/testfile2</path>
<path
   item="added"
   props="none"
   kind="dir">testdir2</path>
</paths>
</diff>

This information was, and is still, available from the diff_summary() call. It isn't available in the normal diff() call because this information isn't provided in the normal diff output:

$ svn diff -r 1:2
Index: testdir2/testfile2
===================================================================
--- testdir2/testfile2	(nonexistent)
+++ testdir2/testfile2	(revision 2)
@@ -0,0 +1 @@
+14095d20-5b1e-11ea-8d8b-e7d6ce2448de

Confirm that this is what you were looking for.

@dsoprea dsoprea closed this as completed Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants