|
|
Home » Developing U++ » UppHub » Added SVN Library
Added SVN Library [message #16435] |
Sun, 15 June 2008 02:57 |
mdelfede
Messages: 1307 Registered: September 2007
|
Ultimate Contributor |
|
|
Well, just a pre-release, many stuffs are missing but it's already usable.
I added a small application to test it, it just fetches a folder from upp svn three, allows to list it, change files, look at status, look at repository log, reconnect to folder, wipe it.
Can be used freely, it doesn't write back to upp repository (and, it CAN'T ! ).
No docs for the moment, but source overcommented as usual
Bazaar/SvnLib for the library
Bazaar/SvnTest for the test application.
Ciao
Max
|
|
|
Re: Added SVN Library [message #16476 is a reply to message #16435] |
Tue, 17 June 2008 13:23 |
|
Error on build SVNTest (win32 XP with MSC8 optimal):
Quote: | ----- SvnLib ( GUI GCC WIN32 ) (2 / 11)
SvnLib.cpp
In file included from D:\upp\svn\trunk\bazaar\SvnLib\SvnLib.cpp:3:
D:\upp\svn\trunk\bazaar\SvnLib\/SvnLib.h:125: error: 'ulong' does not name a type
D:\upp\svn\trunk\bazaar\SvnLib\/SvnLib.h:129: error: 'ulong' does not name a type
D:\upp\svn\trunk\bazaar\SvnLib\/SvnLib.h:194: error: 'ulong' does not name a type
D:\upp\svn\trunk\bazaar\SvnLib\/SvnLib.h:197: error: 'ulong' does not name a type
D:\upp\svn\trunk\bazaar\SvnLib\SvnLib.cpp: In member function 'void Upp::Svn::Init()':
D:\upp\svn\trunk\bazaar\SvnLib\SvnLib.cpp:195: error: 'FCheckedRevision' was not declared in this scope
D:\upp\svn\trunk\bazaar\SvnLib\SvnLib.cpp:198: error: 'FHeadRevision' was not declared in this scope
D:\upp\svn\trunk\bazaar\SvnLib\SvnLib.cpp: In member function 'Upp::Svn::Errors Upp::Svn::Connect(const Upp::String&)':
D:\upp\svn\trunk\bazaar\SvnLib\SvnLib.cpp:484: error: 'FCheckedRevision' was not declared in this scope
D:\upp\svn\trunk\bazaar\SvnLib\SvnLib.cpp:499: error: 'FHeadRevision' was not declared in this scope
D:\upp\svn\trunk\bazaar\SvnLib\SvnLib.cpp: In member function 'Upp::Svn::Errors Upp::Svn::Update(const Upp::String&)':
D:\upp\svn\trunk\bazaar\SvnLib\SvnLib.cpp:600: error: 'FCheckedRevision' was not declared in this scope
SvnLib: 1 file(s) built in (0:01.25), 1250 msecs / file, duration = 1266 msecs, parallelization 0%
There were errors. (1:32.29)
|
|
|
|
|
|
|
Re: Added SVN Library [message #16490 is a reply to message #16489] |
Tue, 17 June 2008 22:13 |
Oblivion
Messages: 1091 Registered: August 2007
|
Senior Contributor |
|
|
Great job!.
SvnLib compiles successfully on MinGW, but it fails to compile on MSVC9.0 with the following error:
Quote: |
----- CtrlLib ( GUI MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (1 / 11)
----- SvnLib ( GUI MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (2 / 11)
SvnLib.cpp
c:\myapps\svnlib\svnlib.cpp(867) : error C4716: 'Upp::Svn::UpdateInfo' : must return a value
SvnLib: 1 file(s) built in (0:05.68), 5687 msecs / file, duration = 5703 msecs
There were errors. (0:05.84)
|
In SvnLib.cpp,
// updates info from current repository
Svn::Errors Svn::UpdateInfo(void)
{
} // END Svn::UpdateInfo()
Should return an error code. I'm suprised that the ever-complaining MinGW did not give any errors, not even a warning.
Github page: https://github.com/ismail-yilmaz
upp-components: https://github.com/ismail-yilmaz/upp-components
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Tue, 17 June 2008 22:15] Report message to a moderator
|
|
|
Re: Added SVN Library [message #16491 is a reply to message #16490] |
Wed, 18 June 2008 00:32 |
mdelfede
Messages: 1307 Registered: September 2007
|
Ultimate Contributor |
|
|
Oblivion wrote on Tue, 17 June 2008 22:13 | Great job!.
SvnLib compiles successfully on MinGW, but it fails to compile on MSVC9.0 with the following error:
Quote: |
----- CtrlLib ( GUI MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (1 / 11)
----- SvnLib ( GUI MSC9 DEBUG DEBUG_FULL BLITZ WIN32 MSC ) (2 / 11)
SvnLib.cpp
c:\myapps\svnlib\svnlib.cpp(867) : error C4716: 'Upp::Svn::UpdateInfo' : must return a value
SvnLib: 1 file(s) built in (0:05.68), 5687 msecs / file, duration = 5703 msecs
There were errors. (0:05.84)
|
In SvnLib.cpp,
// updates info from current repository
Svn::Errors Svn::UpdateInfo(void)
{
} // END Svn::UpdateInfo()
Should return an error code. I'm suprised that the ever-complaining MinGW did not give any errors, not even a warning.
|
Well, well... It's not complete !
I'd like to know if demo app works on windows too, by now... Just tested on Linux
I still must extend the class to manage tags/branches in some easy way, as other important stuffs.
By now the demo just allow to connect to upp (small part) of svn repo and do checkout/logs on it... If all is ok, I'll continue it.
BTW, for the error above, just add
to function, it's just a stub by now.
Thanx for testing !
Max
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Mar 29 11:38:49 CET 2024
Total time taken to generate the page: 0.01262 seconds
|
|
|