|
|
Home » Community » U++ community news and announcements » Upp moves to SVN
|
|
|
Re: Upp moves to SVN [message #1326 is a reply to message #1301] |
Mon, 27 February 2006 23:22 |
iplayfast
Messages: 47 Registered: February 2006
|
Member |
|
|
Just to help out people who are unfamiliar with subversion.
To get the source use unodgs's
svn co https://svn.sourceforge.net/svnroot/upp <your_local_directory>
Under windows to create a patch use the tortoisesvn downloaded from http://tortoisesvn.tigris.org/download.html.
The program is very easy to use. Use the windows explore to go to where the svn directory is (or will be). Right click on the folder and and use the menu selections.
Under Linux it's easist to use the command prompt to make patches. (Although KDE has a plugin for viewing versions as well).
From the http://www.python.org/dev/devfaq.html#how-to-make-a-patch
To make a patch use
svn diff | tee ~/name_of_the_patch.diff
To apply a patch use
patch -p0 < name_of_the_patch.diff
To undo a patch
patch -R -p0 < name_of_the_patch.diff
To revert to a prestine copy
svn revert <your directory>
It is my hope that the upp god-programmers use subversion to submit thier patches as they make them, so we can all retain the most current copy, without having to wait for unodgs to update.
Subversion was designed to be used by the maintainers of a project to keep the repository current, as well for the spectators who want to build their copies themselves.
This project has really caught my interest and I'm hoping to make myself more useful to it in the future.
[Updated on: Mon, 27 February 2006 23:24] Report message to a moderator
|
|
|
|
Re: Upp moves to SVN [message #1335 is a reply to message #1332] |
Tue, 28 February 2006 02:18 |
iplayfast
Messages: 47 Registered: February 2006
|
Member |
|
|
I've not seen smartsvn before. It looks like it would do the job. Why do you think it's better then TortoiseSVN?
Attached is my first patch! (whee!!)
This patch allows the SDLexample to work on Linux. The only thing is, I think that the beta I downloaded already has some changes in it.
Is the svn at sourceforge up to date?
The patch (human readable)
Replace this
with this
According to SDL sites this is what is expected. But in just trying out this patch on windows, it breaks it. Perhaps you folks need to add and SLD directory before the one you added to windows? (just guessing)
replace this
fntbmp = SDL_LoadBMP(GetDataFile("font.bmp"));
with this
#ifdef PLATFORM_WIN32
fntbmp = SDL_LoadBMP(GetDataFile("font.bmp"));
#endif
#ifdef PLATFORM_POSIX
fntbmp = SDL_LoadBMP(GetDataFile("upp/examples/SDLExample/font.bmp"));
#endif
So that the font.bmp is found. I don't know the best way of handling this for an example program. The data isn't with the binary under Linux, so I just mapped it to where it was from my home directory.
There is probably a better way to handle this, but I don't know.
[Updated on: Tue, 28 February 2006 02:39] Report message to a moderator
|
|
|
|
|
Re: Upp moves to SVN [message #1349 is a reply to message #1348] |
Tue, 28 February 2006 18:09 |
|
mirek
Messages: 13979 Registered: November 2005
|
Ultimate Member |
|
|
iplayfast wrote on Tue, 28 February 2006 12:03 | Don't know what brc is.
This patch was made using subversion. The svn at sourceforge appears to be out of date according to the latest beta. (as can be seen from the extra stuff that was patched).
What I did was take my modifications from the beta and copy them over the clean svn checkout. Then created my patch and submitted it.
Would it be possible to update the repository with your latest changes? (Use the same method as above, ie do a fresh checkout, then copy *.* overtop). After that it should be a piece of cake to keep yourself and any other developer in sync.
|
Oh, no, I am refering to the actual code, not the process (that is, not about svn or diff).
brc is a special way how to include binary data into your code. Which is exactly the problem we are facing here.
GetDataFile function is a special Win32 specific hack that detects whether your binary runs launched from TheIDE - if yes, it returns the file from the source directory. If not, it takes the file from executable directory.
Mirek
|
|
|
|
|
Re: Upp moves to SVN [message #1355 is a reply to message #1335] |
Tue, 28 February 2006 19:14 |
|
iplayfast wrote on Mon, 27 February 2006 20:18 | I've not seen smartsvn before. It looks like it would do the job. Why do you think it's better then TortoiseSVN?
|
I didn't make myself clear.. SmartSVN isn't better - it's just different. And that differents are better for me (I prefer "windowed programs" to right clicked ones..
Quote: |
Is the svn at sourceforge up to date?
|
I'm trying to move uvs sources to svn as often as possible...
|
|
|
Goto Forum:
Current Time: Mon May 13 10:52:03 CEST 2024
Total time taken to generate the page: 0.02047 seconds
|
|
|