Bug 417744 - Team > Create patch makes a patch with wrong file order
Summary: Team > Create patch makes a patch with wrong file order
Status: RESOLVED FIXED
Alias: None
Product: Subversive
Classification: Technology
Component: Core (show other bugs)
Version: 1.1.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.4 M3   Edit
Assignee: Alexander Gurov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-21 06:09 EDT by Juris Sudmalis CLA
Modified: 2013-09-22 09:34 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juris Sudmalis CLA 2013-09-21 06:09:31 EDT
When creating a patch of any project that is connected to an SVN repository, the files in the resulting patch are in wrong order. Let's say, I had a directory structure like this:
/abc/bar.java
/abc/foo.java
/def/bar.java
/def/foo.java

if all of these files were modified and I created a patch via Eclipse, it rarely orders them correctly, usually the order is somewhat random, for example, it could order the /abc/ and /def/ directories in opposite direction and keep the file order (if lucky enough):
/def/bar.java
/def/foo.java
/abc/bar.java
/abc/foo.java
or the other way around:
/abc/foo.java
/abc/bar.java
/def/foo.java
/def/bar.java
It does, however, keep directories of the same name in one group, i.e. it will never put /def/ between 2x /abc/.

The problem for me (and possibly many others) is that when posting such a patch to a github gist and later updating it, the history log is all garbled even if all you did was change 1 line in 1 file, because the file order is completely different every time you create a patch (provided you have enough files, of course).

If I make the patches via command line (svn diff on project root) everything is fine, so to me it's obvious the problem is in Eclipse.

I have observed this problem for quite a while, but until now I didn't have a real reason to have the files in the correct order other than readability.

P.S. not sure if this is a Subversive-only problem, maybe other VCS have the same thing.
Comment 1 Alexander Gurov CLA 2013-09-22 06:20:32 EDT
Now Subversive will always force the same file order (alphabetical) when the patch is made under Subversive's supervision.
Comment 2 Juris Sudmalis CLA 2013-09-22 06:33:30 EDT
In which version of Subversive will this be available?
The Subversive SVN Team Provider version I have is "1.1.0.I20130527-1700", and checking for updates does not find a newer version.
Comment 3 Alexander Gurov CLA 2013-09-22 09:11:34 EDT
The change will be available in Luna M3 sim rel build. If what yo need is stable releases only, that will be the Luna sim rel itself according to the project plan:
http://www.eclipse.org/projects/project-plan.php?projectid=technology.subversive
Comment 4 Juris Sudmalis CLA 2013-09-22 09:34:17 EDT
Ok, Novemember 12 it is, then. Thanks!