[commit] r2333 - trunk/Tests/svngui
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Tue Sep 3 17:21:58 CDT 2013
Author: volgy
Date: Tue Sep 3 17:21:58 2013
New Revision: 2333
Log:
Modified:
trunk/Tests/svngui/SVNClient.cpp
trunk/Tests/svngui/SVNClient.h
Modified: trunk/Tests/svngui/SVNClient.cpp
==============================================================================
--- trunk/Tests/svngui/SVNClient.cpp Tue Sep 3 17:00:54 2013 (r2332)
+++ trunk/Tests/svngui/SVNClient.cpp Tue Sep 3 17:21:58 2013 (r2333)
@@ -242,7 +242,7 @@
{
ASSERT(isInitialized);
- CSVNFile* svnFile = new CSVNFile(filePath);
+ CSVNFile* svnFile = new CSVNFile(this, filePath);
if (svnFile) {
svnFiles.AddTail(svnFile);
}
@@ -352,7 +352,8 @@
}
-CSVNFile::CSVNFile(const CString & filePath)
+CSVNFile::CSVNFile(CSVNClient* client, const CString & filePath)
+ : client(client), filePath(filePath)
{
}
@@ -363,6 +364,9 @@
bool CSVNFile::isTracked()
{
//TODO: implement this
+
+ SVNTHROW(svn_client_status5(NULL, client->ctx, filePath, NULL, svn_depth_empty, FALSE, FALSE, FALSE, FALSE, TRUE, NULL, cbStatus, this, client->pool));
+
return false;
}
Modified: trunk/Tests/svngui/SVNClient.h
==============================================================================
--- trunk/Tests/svngui/SVNClient.h Tue Sep 3 17:00:54 2013 (r2332)
+++ trunk/Tests/svngui/SVNClient.h Tue Sep 3 17:21:58 2013 (r2333)
@@ -28,7 +28,10 @@
friend class CSVNClient;
private:
- CSVNFile(const CString & filePath);
+ CSVNFile(CSVNClient* client, const CString & filePath);
+
+ // Callbacks
+ static svn_error_t* cbStatus(void *baton, const char *path, const svn_client_status_t *status, apr_pool_t *scratch_pool);
public:
virtual ~CSVNFile();
@@ -39,6 +42,10 @@
void takeOwnership();
void commit();
+
+private:
+ CSVNClient *client;
+ CString filePath;
};
More information about the gme-commit
mailing list