Calling svn.exe from C++ code!

2010-06-18 Thread fantasy1215

For some reason, I need to call svn.exe in my code, following is just a test
hard written code,
What am I doing is just 'svn diff'.
but it doesn't work. Not touch a c:\abc123.txt file.
Thanks in advance!
TCHAR szExePath[] = TEXT("C:\\Program Files\\Subversion\\bin\\svn.exe");
SHELLEXECUTEINFO shinfo = {0};
shinfo.cbSize = sizeof(SHELLEXECUTEINFO);
shinfo.fMask = SEE_MASK_NO_CONSOLE;
shinfo.hwnd = NULL;
shinfo.lpVerb = TEXT("open");
shinfo.lpFile = szExePath;
shinfo.lpParameters = TEXT(" diff -r 755:HEAD E:\\workcopy\\Main.cpp >
c:\\abc123.txt");
shinfo.lpDirectory = NULL;
shinfo.nShow = SW_SHOW;
shinfo.hInstApp = NULL;
BOOL bRet = FALSE;
bRet = ::ShellExecuteEx(&shinfo);->here return value is 
TRUE,
and I saw console flash
-- 
View this message in context: 
http://old.nabble.com/Calling-svn.exe-from-C%2B%2B-code%21-tp28932381p28932381.html
Sent from the Subversion Users mailing list archive at Nabble.com.



How to manage the svn repository layout?

2010-07-27 Thread fantasy1215

In the svn repository, the repository directory layout now is awful, I plan
to reorganize the layout, But I don't know what's risk I will take.
Q1:If I move sub1 from / to sub2 directory, will the log and revision still
remain under sub1?
Q2:If I move sub1 from / to sub2 directory, the workcopy need to relocate or
checkout initally?
Thanks in advance!
-- 
View this message in context: 
http://old.nabble.com/How-to-manage-the-svn-repository-layout--tp29275559p29275559.html
Sent from the Subversion Users mailing list archive at Nabble.com.