SVN View sort files

Discussion about CodeLite development process and patches
elkvis
CodeLite Enthusiast
Posts: 18
Joined: Wed Jul 21, 2010 5:17 pm
Genuine User: Yes
IDE Question: C++
Contact:

SVN View sort files

Post by elkvis »

The XML data returned from "svn status --xml" does not return files in any discernable order, so I'm suggesting the following change:

in Subversion2/svnstatushandler.cpp

Code: Select all

void SvnStatusHandler::Process(const wxString& output)
{
//	GetPlugin()->GetShell()->AppendText(output);
	wxArrayString modFiles, conflictedFiles, unversionedFiles, newFiles, deletedFiles, lockedFiles;
	SvnXML::GetFiles(output, modFiles, conflictedFiles, unversionedFiles, newFiles, deletedFiles, lockedFiles);
	
// new code
	modFiles.Sort();
	conflictedFiles.Sort();
	unversionedFiles.Sort();
	newFiles.Sort();
	deletedFiles.Sort();
	lockedFiles.Sort();
// end of new code
	
	GetPlugin()->GetSvnView()->UpdateTree(modFiles, conflictedFiles, unversionedFiles, newFiles, deletedFiles, lockedFiles);
}
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: SVN View sort files

Post by eranif »

Thanks, patch applied and committed to trunk

FYI:
In the future, it will be easier if you simply right click on the svn view root entry and select 'Create Diff...' -> save the file and send it over

Eran
Make sure you have read the HOW TO POST thread
Post Reply