// DepotDiff.cpp : Defines the class behaviors for the application. // #include "stdafx.h" #include "DepotDiff.h" #include "DepotDiffDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CDepotDiffApp BEGIN_MESSAGE_MAP(CDepotDiffApp, CWinApp) //{{AFX_MSG_MAP(CDepotDiffApp) // NOTE - the ClassWizard will add and remove mapping macros here. // DO NOT EDIT what you see in these blocks of generated code! //}}AFX_MSG ON_COMMAND(ID_HELP, CWinApp::OnHelp) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CDepotDiffApp construction CDepotDiffApp::CDepotDiffApp() { // TODO: add construction code here, // Place all significant initialization in InitInstance } ///////////////////////////////////////////////////////////////////////////// // The one and only CDepotDiffApp object CDepotDiffApp theApp; ///////////////////////////////////////////////////////////////////////////// // CDepotDiffApp initialization BOOL CDepotDiffApp::InitInstance() { // InitCommonControls() is required on Windows XP if an application // manifest specifies use of ComCtl32.dll version 6 or later to enable // visual styles. Otherwise, any window creation will fail. InitCommonControls(); CWinApp::InitInstance(); CWinApp::SetRegistryKey("Perforce\\DepotDiff"); AfxEnableControlContainer(); // Set up the client. Error e; m_client.SetProtocol( "tag", "" ); // Connect to server. m_client.Init( &e ); e.Abort(); char cwd[_MAX_PATH]; GetCurrentDirectory(_MAX_PATH, cwd); CString curDir = cwd; curDir += "\\"; CDepotDiffDlg dlg; dlg.SetRecursive(true); dlg.SetRootDirectory( curDir ); m_pMainWnd = &dlg; if ( dlg.Create( CDepotDiffDlg::IDD ) ) { dlg.ShowWindow( SW_SHOW ); dlg.Refresh( curDir, true ); dlg.RunModalLoop( MLF_NOIDLEMSG ); dlg.DestroyWindow(); } // Since the dialog has been closed, return FALSE so that we exit the // application, rather than start the application's message pump. return FALSE; }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 2101 | Joshua Jensen |
Solved the problem where DepotDiff was double scanning directories. DepotDiff's dialog pops up immediately. As directories are processed, their names show in the title bar. Turned off accidental logging of the file names to stdout. |
||
#2 | 2099 | Joshua Jensen |
Will properly delete directories. Only asks to delete once for groups of files. |
||
#1 | 1789 | Joshua Jensen | Perforce Depot Diff code and binary added. |