Page 1 of 1

SVN View sort files

Posted: Fri Mar 02, 2012 8:25 pm
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);
}

Re: SVN View sort files

Posted: Fri Mar 02, 2012 11:42 pm
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