Clarification on doDiffStatus

View: New views
3 Messages — Rating Filter:   Alert me  

Clarification on doDiffStatus

by aravinda777 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am using the diffClient.diDiffStatus(...) method in order to get a list of added, deleted and changed files between two revisions of a repo location. The understanding I have about this method is like this.

Assume the following parameters were used:

diffClient.doDiffStatus(url, start, url, end, SVNDepth.INFINITY, false,  new ISVNDiffStatusHandler() {...}));

In this case I am making the following assumptions.
1. Files detected as deleted have been in existence by the 'start' revision and have got within the duration in concern.
2. File detected as added have been added within the time window, and are available at the 'end' revision.
3. Files marked as changed are in existence  in both 'start' and 'end' revision, and it is possible to do a diff to find the changes.

Are these assumptions correct?

I feel there is a flaw in my assumption about deletion since when I try to read the content of the deleted file by trying to get the content of that file corresponding to the 'start' revision, it throws an exception saying that the file cannot be found in that revision.

Am I missing something here?

Rgds,
-A

Parent Message unknown Re: Clarification on doDiffStatus

by Alexander Sinyushkin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Are you sure a deleted file exists in startRevision?
If it does not, then this is expected behaviour.

----
Alexander Sinyushkin,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...


Re: Clarification on doDiffStatus

by aravinda777 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

The issue is, I am assuming that if the doDiffStatus says a file has been deleted within given two revisions, it is existing in the start revision I am giving. Is that assumption correct?

Can you tell me how exactly this method works? I think there's a problem with the understanding I have about it.

According to what I got, I think it has the file set of the start revision and the file set of the end revision. Then it checks what files in the start revision got deleted (start - end kind of thing) , what got added (end - start kind of thing) and treat the rest as modified.

Could you please clarify?

Rgds,
-A

Alexander Sinyushkin wrote:
Hello,

Are you sure a deleted file exists in startRevision?
If it does not, then this is expected behaviour.

----
Alexander Sinyushkin,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@svnkit.com
For additional commands, e-mail: svnkit-users-help@svnkit.com