返回release和dev分支bid值
This commit is contained in:
@@ -34,6 +34,18 @@ BOOL TryGetBidFromBranch(const CString& strBranch, UINT& nBid)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (strBranch.CompareNoCase(_T("release")) == 0 )
|
||||||
|
{
|
||||||
|
nBid = 1;
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (strBranch.CompareNoCase(_T("dev")) == 0)
|
||||||
|
{
|
||||||
|
nBid = 2;
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
int nDotPos = strBranch.ReverseFind(_T('.'));
|
int nDotPos = strBranch.ReverseFind(_T('.'));
|
||||||
if (nDotPos <= 0 || nDotPos >= strBranch.GetLength() - 1)
|
if (nDotPos <= 0 || nDotPos >= strBranch.GetLength() - 1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user