OSDN Git Service

PATCH: [ 1394759 ] Allows quotes in Rational ClearCase checkout comment
authorKimmo Varis <kimmov@gmail.com>
Sun, 1 Jan 2006 23:33:16 +0000 (23:33 +0000)
committerKimmo Varis <kimmov@gmail.com>
Sun, 1 Jan 2006 23:33:16 +0000 (23:33 +0000)
 - submitted by Gal Hammer

Src/Changes.txt
Src/MainFrm.cpp

index 5352fa3..66bc522 100644 (file)
@@ -1,3 +1,8 @@
+2006-01-01 Kimmo
+ PATCH: [ 1394759 ] Allows quotes in Rational ClearCase checkout comment
+  Submitted by Gal Hammer
+  Src: MainFrm.cpp
+
 2006-01-01 Perry
  BUG: [ 1394857 ] cvs trunk does not compile, ANSI, FindEncodingIdFromNameOrAl
   Src: codepage_detect.cpp
index 3131262..a40a849 100644 (file)
@@ -1176,6 +1176,7 @@ BOOL CMainFrame::SaveToVersionControl(CString& strSavePath)
                        CString args;
 
                        // checkout operation
+                       m_strCCComment.Replace(_T("\""), _T("\\\""));
                        args.Format(_T("checkout -c \"%s\" \"%s\""), m_strCCComment, sname);
                        CString vssPath = m_options.GetString(OPT_VSS_PATH);
                        HANDLE hVss = RunIt(vssPath, args, TRUE, FALSE);