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