[RageUtil] Add detection of .hg to StripCvsAndSvn.

This commit is contained in:
AJ Kelly
2012-07-02 21:52:31 -05:00
parent b5b7036cd7
commit 2a2cf23c47
2 changed files with 2347 additions and 2343 deletions
+1
View File
@@ -11,6 +11,7 @@ StepMania 5.0 ???? ?? | 20120???
2012/07/02 2012/07/02
---------- ----------
* [ScreenHowToPlay] Run InitCommand on Characters if enabled. [AJ] * [ScreenHowToPlay] Run InitCommand on Characters if enabled. [AJ]
* [RageUtil] Add detection of ".hg" to StripCvsAndSvn. [AJ]
2012/06/27 2012/06/27
---------- ----------
+4 -1
View File
@@ -1233,9 +1233,12 @@ RString URLEncode( const RString &sStr )
return sOutput; return sOutput;
} }
// remove various version control-related files
static bool CVSOrSVN( const RString& s ) static bool CVSOrSVN( const RString& s )
{ {
return s.Right(3).EqualsNoCase("CVS") || s.Right(4) == ".svn"; return s.Right(3).EqualsNoCase("CVS") ||
s.Right(4) == ".svn" ||
s.Right(3).EqualsNoCase(".hg");
} }
void StripCvsAndSvn( vector<RString> &vs ) void StripCvsAndSvn( vector<RString> &vs )