Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2009-07

SVN error with macosall.pas

16 messages · 8 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Zaher Dirkey

When i update FPC from SVN repo
it updated for 10 mbytes then i had this error

Error: REPORT of '/svn/fpc/!svn/vcc/default': 200 OK (http://svn2.freepascal.org:8080)

I tried to update every folder it work fine until i found that file can not updated with the same error

http://svn2.freepascal.org:8080/svn/fpc/trunk/packages/univint/src/MacOSAll.pas

That file not found in my work copy yet.

I used WinXp and TortoiseSVN, also i test it with a command line svn client, with different mirrors.

Can we have the source of FPC with ".svn" directories for last release of FPC then i can start update from it.

Thanks in advanced

Zaher Dirkey

Reply by email

Carolos
to Zaher Dirkey

Sometimes I get issues with TortoiseSVN.
First make a backup of your current work copy.

Download the latest version of TortoiseSVN and checkout from the repository again to a new folder.
If you have made changes in your old work copy, export your work copy to a new directory to get rid of SVN folders.

And copy exported version over your newly checkedout folder.

Hope that helps.

-Carolos

Zaher Dirkey wrote 27 lines
When i update FPC from SVN repo it updated for 10 mbytes then i had this error Error: REPORT of '/svn/fpc/!svn/vcc/default': 200 OK (http://svn2.freepascal.org:8080) I tried to update every folder it work fine until i found that file can not updated with the same error http://svn2.freepascal.org:8080/svn/fpc/trunk/packages/univint/src/MacOSAll.pas That file not found in my work copy yet. I used WinXp and TortoiseSVN, also i test it with a command line svn client, with different mirrors. Can we have the source of FPC with ".svn" directories for last release of FPC then i can start update from it. Thanks in advanced -- Zaher Dirkey _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Graeme Geldenhuys
to Zaher Dirkey: When i update FPC from SVN repo it updated for 10 mbytes then i had this error Error:…

2009/7/11 Zaher Dirkey :

Have you thought of maybe using the Git mirror instead? The initial clone is a 54MB download, but then you have the whole FPC history including all the branches like trunk, fixes_2_2 etc... Another nice feature is that the local copy is much cleaner - no more duplicates of all files so your local copy takes up less space, no more .svn directories in every folder (git only has one .git in the root of the project), etc..

The mirror is hosted on GitHub available via

  $ git clone git://github.com/graemeg/freepascal.git

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Florian Klaempfl
to Graeme Geldenhuys
2009/7/11 Zaher Dirkey : Another nice feature is that the local copy is much cleaner - no more duplicates of all files so your local copy takes up less space,

If I care about this, I use a compressing file system or compress even single folders instead of expecting this from the application.

no more .svn directories in every folder (git only has one .git in the root of the project), etc..

... and get a fast machine. Resolving the deltas took ages on my arm box. So the whole git clone took almost 30 min thought I got the data rather quickly with 293 KiB/s.

Reply by email

Jesus Reyes
Show quoted text 8 lines
Another nice feature is that the local copy is much cleaner - no more duplicates of all files so your local copy takes up less space, no more .svn directories in every folder (git only has one .git in the root of the project), etc..

I think this is a feature and not a bug, I use often this feature because I have setup a shortcut in lazarus and some icon in total commander, for running external diff tool (kdiff3 in linux and winmerge in windows) of my local copy against svn version. It would be nice if the same thing could be made with git, and even as git can hold whole history, it would be interesting to choose any specific revision to do the diff, how?

btw how do git deals with revisions? with svn having a short number tagging a revision is handy even when it could make you crazy like when tracking changes on branches or tags :)

Jesus Reyes A.

¡Obtén la mejor experiencia en la web! Descarga gratis el nuevo Internet Explorer 8. http://downloads.yahoo.com/ieak8/?l=mx

Reply by email

Graeme Geldenhuys
to Jesus Reyes

2009/7/11 Jesus Reyes :

I think this is a feature and not a bug,

Yes, it is how SVN works to show you the original file, but it waists a lot of space (double everything) and it pollutes the directories, so you can't quickly archive the "checked out" directories without pulling in all the .svn one. Alternative is to first export to another location and then archive that. Git you don't have to worry about that, plus Git has the 'git archive' command which does exactly want I intended in the first place - very nice for creating releases.

It would be nice if the same thing could be made with git,

There are many ways to get hold of the original file in the repository. 'git cat' is just one of them, 'git show' is another. But 'git diff' does an excellent job by itself. It has built in pager support, so you can scroll up and down through the diff output, git does color highlighting for your, git also has a pascal language diff improvemnt, so the hunks in the pach (text starting with @@) contains the class name, method name etc.. to which the hunk relates - I find the latter *very* handy.

Then you can also tell git against what you want the diff. If you made many local commits you can compare against them, or if you want to compare against the original version still in "upstream" or "master". You can obviously also do diffs against any revision back in time by specifing the revision, x days ago, etc...

and even as git can hold whole history, it would be interesting to choose any specific revision to do the diff, how?

Git does not use incremental revision numbers because it is a distributed SCM, so which revision number will be the true revision number? That is why git instead uses a SHA1 which was generated from each commit. This has many advantages. If you want to know if you have the same version as somebody else, you only need to look at the SHA1 instead of the commit details - this is obviously very fast. This also helps merges, etc... so git can easily detect if a local commit which was submitted as a patch and then came back through "master" or "upstream" (patch was accepted at applied), git can savely remove the local commit and apply the new one instead.

If to different repositories had different development paths, but a specific commit ended up havening the same SHA1, it means they file is now exactly the same, no matter the history it took to get there.

In Git you don't have to specify the whole 40 character SHA1, normally the first 7 characters is enough to uniquely identify a SHA1. I must admit, SHA1's were something to get used to, because all previous SCM systems I used, had incremental revision numbers. But SHA1 is more than just a "number" in Git, it tells you that it is cryptographically correct, and contains the history (including moved files, renamed files, directory tree etc) of how you got to that file.

Now if you cloned a SubVersion repository and keep the Git repository as a mirror (like I am doing with FPC and Lazarus), you mights still want to reference the SubVersion revision number. Well, git has support for that. First off, when git cloned the SubVersion repository it added some meta data by default into the commit message (and a few other places) telling you the repository and revision number it came from. To reference a specific revision number like SVN does you can do something like this:
git log -r1354
git log -r2000:2050 -v
etc..

btw how do git deals with revisions? with svn having a short number tagging a revision is handy even when it could make you crazy like

Well I think I explained that above. You can use any abbreviated version of a full SHA1, though the first 6-8 characters are probably a recommended minimum. Many git commands can be told to only show an abbreviated SHA1 as well. Git also has some other formats you can use which don't require a SHA1 value. HEAD for example points to the last commit in a branch. ORIG_HEAD is the HEAD before you did some big command like 'git fetch' (something like svn checkout). So if you made a mistake, you can even undo the 'git fetch' command. You can also do things like HEAD~4 which means 4 commits before HEAD. The number can be as high or low as you want. You can use tags as well... v1.6~20 meaning 20 commits before the v1.6 tag etc...

It's hardly possible to loose something in git as well. You might have deleted commits from history or undone your last days work etc... Those commits might not appear in any branch or log anymore, but as long as you did not run 'git plune', they are still available as "dangling commits". You can obviously ask git to show you all dangling commits, you can then use 'git show <sha1>' to view those and retrieve them. It is recommended to create a sandbox repository and play around with such commands to get used to the idea that things don't just get lost. This allows you to experiment with more commands a lot quicker.

The git mailing list is also a very friendly environment and they do not mind answering questions from any experience level.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys

2009/7/12 Graeme Geldenhuys :

Show quoted text 5 lines
from. To reference a specific revision number like SVN does you can do something like this:   git log -r1354   git log -r2000:2050 -v   etc..

Oops, that should read...

git svn log -r1354
git svn log -r2000:2050 -v

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Marco van de Voort
to Graeme Geldenhuys: 2009/7/11 Jesus Reyes : Yes, it is how SVN works to show you the original file, but it…

In our previous episode, Graeme Geldenhuys said:

Show quoted text 8 lines
Yes, it is how SVN works to show you the original file, but it waists a lot of space (double everything) and it pollutes the directories, so you can't quickly archive the "checked out" directories without pulling in all the .svn one. Alternative is to first export to another location and then archive that. Git you don't have to worry about that, plus Git has the 'git archive' command which does exactly want I intended in the first place - very nice for creating releases.

Can we please put a brake on the Git advocacy? I've already heard more about Git now then I ever want to know.

Reply by email

Zaher Dirkey
to Marco van de Voort

@Graeme, I used Git for fpGUI only :) , for FPC i can not because i have a slow connection and i am SVN fan user.

@Carlos I do not think it is TortoiseSVN problem because i tried with svn command line with new folder and had the same error, may be it is an Apache as Jonas had said, or my ISP connection proxy/nat refuse 10m connection.

I am working to resolve this problem since that file "macosall.pas" was added, in fact i am waiting for some one else who have the same problem.

For temporary for i can continue update the source, if some one can send me the directory with .svn folder in zip file only this directory is enough for me

/packages/univint/src/

Thanks

Zaher Dirkey

Reply by email

Graeme Geldenhuys
to Marco van de Voort: In our previous episode, Graeme Geldenhuys said: Can we please put a brake on the Git…

2009/7/12 Marco van de Voort :

Can we please put a brake on the Git advocacy? I've already heard more about Git now then I ever want to know.

I simply offered Zaher an alternative download solution. The Mercurial and Git mirror are alternatives to the SubVersion repository and I don't believe many users know about them. Currently the www.freepascal.org website only has a single small paragraph about the Mercurial mirror - many users probably miss that information. Zaher had an issue pulling in the latest source code which seems to be an issue with *any* SubVersion client - so what else must he do? Just give up on FPC?

Jesus Reyes simply asked a question about Git (I assumed it was related to the Git mirror of FPC) so only answered his questions. I'm pretty sure Florian would have answer similar questions about the Mercurial mirror of FPC repository. I'm not here to promote Git - what benefit is there for me? I don't even develop for Git, I'm just a Git user.

So in future if somebody asks questions about the Mercurial or Git mirrors, what should we do - just flat out ignore them? That doesn't sound like the right thing either. Some poor soul wanted to get hold of the FPC source code - I just enlightened them how to. So if somebody had an issue (like Zaher) pulling in the source code via SubVersion, should we ignore all such emails as well?

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Marco van de Voort: In our previous episode, Graeme Geldenhuys said: Can we please put a brake on the Git…

2009/7/12 Marco van de Voort :

Can we please put a brake on the Git advocacy? I've already heard more about Git now then I ever want to know.

I simply offered Zaher an alternative download solution. The Mercurial and Git mirror are alternatives to the SubVersion repository and I don't believe many users know about them. Currently the www.freepascal.org website only has a single small paragraph about the Mercurial mirror - many users probably miss that information. Zaher had an issue pulling in the latest source code which seems to be an issue with *any* SubVersion client - so what else must he do? Just give up on FPC?

Jesus Reyes simply asked a question about Git (I assumed it was related to the Git mirror of FPC) so only answered his questions. I'm pretty sure Florian would have answer similar questions about the Mercurial mirror of FPC repository. I'm not here to promote Git - what benefit is there for me? I don't even develop for Git, I'm just a Git user.

So in future if somebody asks questions about the Mercurial or Git mirrors, what should we do - just flat out ignore them? That doesn't sound like the right thing either. Some poor soul wanted to get hold of the FPC source code - I just enlightened them how to. So if somebody had an issue (like Zaher) pulling in the source code via SubVersion, should we ignore all such emails as well?

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Graeme Geldenhuys
to Marco van de Voort: In our previous episode, Graeme Geldenhuys said: Can we please put a brake on the Git…

2009/7/12 Marco van de Voort :

Can we please put a brake on the Git advocacy? I've already heard more about Git now then I ever want to know.

I simply offered Zaher an alternative download solution. The Mercurial and Git mirror are alternatives to the SubVersion repository and I don't believe many users know about them. Currently the www.freepascal.org website only has a single small paragraph about the Mercurial mirror - many users probably miss that information. Zaher had an issue pulling in the latest source code which seems to be an issue with *any* SubVersion client - so what else must he do? Just give up on FPC?

Jesus Reyes simply asked a question about Git (I assumed it was related to the Git mirror of FPC) so only answered his questions. I'm pretty sure Florian would have answer similar questions about the Mercurial mirror of FPC repository. I'm not here to promote Git - what benefit is there for me? I don't even develop for Git, I'm just a Git user.

So in future if somebody asks questions about the Mercurial or Git mirrors, what should we do - just flat out ignore them? That doesn't sound like the right thing either. Some poor soul wanted to get hold of the FPC source code - I just enlightened them how to. So if somebody had an issue (like Zaher) pulling in the source code via SubVersion, should we ignore all such emails as well?

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Carolos
to Graeme Geldenhuys

@ZaherAlthough I like Tortoise SVN a lot, it does have some scary issues in some builds.
I had a build of it that actually checkedout files that had the same name into the wrong directories from a local repository. No idea how or why but it did it.

If a bad build screwed up your local copy, svn commands probably won't help you much.

Look at the changelog of TortoiseSVN theres some pretty serious bugs that were fixed in it.

Take care

Graeme Geldenhuys wrote 41 lines
2009/7/12 Marco van de Voort : > > Can we please put a brake on the Git advocacy? I've already heard more about > Git now then I ever want to know. I simply offered Zaher an alternative download solution. The Mercurial and Git mirror are alternatives to the SubVersion repository and I don't believe many users know about them. Currently the www.freepascal.org website only has a single small paragraph about the Mercurial mirror - many users probably miss that information. Zaher had an issue pulling in the latest source code which seems to be an issue with *any* SubVersion client - so what else must he do? Just give up on FPC? Jesus Reyes simply asked a question about Git (I assumed it was related to the Git mirror of FPC) so only answered his questions. I'm pretty sure Florian would have answer similar questions about the Mercurial mirror of FPC repository. I'm not here to promote Git - what benefit is there for me? I don't even develop for Git, I'm just a Git user. So in future if somebody asks questions about the Mercurial or Git mirrors, what should we do - just flat out ignore them? That doesn't sound like the right thing either. Some poor soul wanted to get hold of the FPC source code - I just enlightened them how to. So if somebody had an issue (like Zaher) pulling in the source code via SubVersion, should we ignore all such emails as well? Regards, - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email