Sign in Join

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

Mailing lists / lazarus / 2008-12

TAChart: Request to review/apply patch 12758

25 messages · 9 people · –

Reply by email Subscribe to this list Your subscription

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

Florian Klaempfl
to Alexander Klenin: See http://bugs.freepascal.org/view.php?id=12758 Sorry to bother Daruis (and everyone…
Show quoted text 7 lines
See http://bugs.freepascal.org/view.php?id=12758 Sorry to bother Daruis (and everyone else) again, but this patch is holding my further work on TAChart. Such are the problems of using centralized version control ;-)

I really wonder how a DVCS would solve this or what would be different? You just apply it to your local working copy and you've it in your builds?

Reply by email

Alexander Klenin
to Florian Klaempfl
I really wonder how a DVCS would solve this or what would be different? You just apply it to your local working copy and you've it in your builds?

Yes. The most important difference in this case is that DVCS would preserve local history. This is similar to every developer having his own branch in SVN (or even arbitrary number of local branches), with merges being almost as trivial as SVN's commits.

I.e. my specific problem can be solved in SVN by creating a branch of TAChart component and giving me commit access to it, but then similar branch should be created for my patches to DBGrid, and yet another one for patches to SynEdit (both stalled for about a month now), etc.
Obviously, this is not a scalable solution for many developers ;-)

Alexander S. Klenin Insight Experts Ltd.

Reply by email

Florian Klaempfl
to Alexander Klenin
Show quoted text 15 lines
> I really wonder how a DVCS would solve this or what would be different? > You just apply it to your local working copy and you've it in your builds? Yes. The most important difference in this case is that DVCS would preserve local history. This is similar to every developer having his own branch in SVN (or even arbitrary number of local branches), with merges being almost as trivial as SVN's commits. I.e. my specific problem can be solved in SVN by creating a branch of TAChart component and giving me commit access to it, but then similar branch should be created for my patches to DBGrid, and yet another one for patches to SynEdit (both stalled for about a month now), etc. Obviously, this is not a scalable solution for many developers ;-)

But isn't the problem that the patches don't get into the central repository?

Though I've write access to the fpc repository ;) I've also several local "branches" (actually plain copies of my fpc checkout) with some changes in it.

But if it's not feasible for you, you can still use git-svn, no?

BTW: An fpc/lazarus git repository would be really no fun: due to the flaky connection a git clone of a converted repository is from svn.freepascal.org basically not possible, at least not for me from germany.

Reply by email

Alexander Klenin
to Florian Klaempfl: But isn't the problem that the patches don't get into the central repository? Though I've…
Florian Klaempfl wrote 11 lines
Alexander Klenin schrieb: > I.e. my specific problem can be solved in SVN by creating a branch of TAChart > component and giving me commit access to it, but then > similar branch should be created for my patches to DBGrid, > and yet another one for patches to SynEdit (both stalled for about a month now), > etc. > Obviously, this is not a scalable solution for many developers ;-) > But isn't the problem that the patches don't get into the central repository?

They will get there eventually. The key thing is that patches can be 'batched' for review/application and not spoon-fed one by one. Look at what is going -- a feature can be implemented as a series of 10 or even 100 patches -- imagine how much time it would take to submit and review each patch sequentially.

Though I've write access to the fpc repository ;) I've also several local "branches" (actually plain copies of my fpc checkout) with some changes in it.

But this is limited to one change per sub a "branch".

But if it's not feasible for you, you can still use git-svn, no?

I'd like to. Unfortunalely, I use Lazarus on Windows, and git still has some troubles here.

BTW: An fpc/lazarus git repository would be really no fun: due to the flaky connection a git clone of a converted repository is from svn.freepascal.org basically not possible, at least not for me from germany.

Sorry, I can not parse this sentence.

how does a DVCS scale better in this regard for small and medium sized projects (<100 developers)?

DVCS does not require any central administration to create branches for every developer/feature. It also does not require network connection for doing commits, which is important to some contries/regions where Internet is still not cheap or reliable enough.

Alexander S. Klenin Insight Experts Ltd.

Reply by email

Florian Klaempfl
to Alexander Klenin
Show quoted text 14 lines
On Thu, Dec 11, 2008 at 20:16, Florian Klaempfl wrote: > Alexander Klenin schrieb: >> I.e. my specific problem can be solved in SVN by creating a branch of TAChart >> component and giving me commit access to it, but then >> similar branch should be created for my patches to DBGrid, >> and yet another one for patches to SynEdit (both stalled for about a month now), >> etc. >> Obviously, this is not a scalable solution for many developers ;-) >> > But isn't the problem that the patches don't get into the central > repository? They will get there eventually. The key thing is that patches can be 'batched' for review/application and not spoon-fed one by one.

This can be done with an svn branch as well? I'am rather sure the lazarus people give you write access to a branch if you ask. And this has a real advantage: if you just commit your changes to your local repository, the changes get lost if you "disappear" and nobody did pull them yet (this is also why we recommend to attach patches to "bug reports", they won't get lost this way), the patches are lost. If they are in a svn branch, they aren't lost.

Look at what is going -- a feature can be implemented as a series of 10 or even 100 patches -- imagine how much time it would take to submit and review each patch sequentially.

The point about kernel.org is that they have dedicated reviewers. If lazarus has dedicated reviewers/merger then this could be done as well. The actual merge command of a branch in svn is a non brainer as well.

Show quoted text 6 lines
> BTW: An fpc/lazarus git repository would be really no fun: due to the > flaky connection a git clone of a converted repository is from > svn.freepascal.org basically not possible, at least not for me from germany. Sorry, I can not parse this sentence.

For testing purposes, I converted the fpc repository to git. However, due to the slow and unreliable connection of our vc server to my place, I was not able to clone this repository to my broken svn checkout can be continued, a git clone apparently not.

Show quoted text 6 lines
> how does a DVCS scale better in this regard for > small and medium sized projects (<100 developers)? DVCS does not require any central administration to create branches for every developer/feature.

It requires it. Or how would you create releases then? The features must go into this repository and if noone does so, the feature is pretty useless as well.

It also does not require network connection for doing commits, which is important to some contries/regions where Internet is still not cheap or reliable enough.

See above :)

Reply by email

Martin Friebe
to Alexander Klenin: They will get there eventually. The key thing is that patches can be 'batched' for…
Alexander Klenin wrote
>> and yet another one for patches to SynEdit (both stalled for about a month now), >> etc

I just saw this, and consequently found your patches on this mailing list too.

As for the SynEdit patches (is-link-able), If you can submit them to mantis, I will take them and had a quick, yet not complete thing I can already tell is the way you check if it is a number:
not (Lines[Y - 1][X1] in ['0'..'9']) and

It is incomplete. $ABCD is a number in hex. Best would be to introduce a IsNumber in the highlighter (pascal, and baseclass), and check there. This would also keep synedit itself more agnostic to pascal specifics (even so, codetools only work on pascal source)

IsNumber has to deal with "1.99e3 " being cut into 2 words, so 99e3 is a number. Not sure what to do with "1.e2", but imho it wouldn't hurt to ignore this and have "e2" linkable.

Also you may need to check the list again, against context sensitive keywords. A "procedure self;" seems to compile.

Best Regards
Martin

Reply by email

Alexander Klenin
to Martin Friebe
Martin Friebe wrote 8 lines
Alexander Klenin wrote: >>> and yet another one for patches to SynEdit (both stalled for about a month now), >>> etc I just saw this, and consequently found your patches on this mailing list too. As for the SynEdit patches (is-link-able), If you can submit them to mantis, I will take them and , see http://bugs.freepascal.org/view.php?id=12785

Note that I posted two patches, and apparently you only found the older one ;-)

My initial approach was not optimal, as you noted, but neither is the second one,
and my questions about the best route were not answered. So if you have time and expertise, please read the mail threads mentioned in the bug report
and provide me with insight ;-)

Alexander S. Klenin Insight Experts Ltd.

Reply by email

Jesus Reyes
to Alexander Klenin: Yes. The most important difference in this case is that DVCS would preserve local…

--- El jue 11-dic-08, Alexander Klenin escribi?:

[snip]

Show quoted text 8 lines
I.e. my specific problem can be solved in SVN by creating a branch of TAChart component and giving me commit access to it, but then similar branch should be created for my patches to DBGrid, and yet another one for patches to SynEdit (both stalled for about a month now), etc.

Sorry about the dbgrid one, btw, cracker classes are sometimes called "access" classes but in this case I think it really made justice to the name, have you tried that on fpc 2.2.2 and current 2.3.1?.

If it gets applied it has to be temporal and as such, we need a patch for fpc also and another taking in count the patched fpc (but that can wait of course), if the fpc patch doesn't make it, it's unlikely the crack will be commited.

Jesus Reyes A.

?Todo sobre Amor y Sexo!
La gu?a completa para tu vida en Mujer de Hoy.
http://mx.mujer.yahoo.com/

Reply by email

Alexander Klenin
to Jesus Reyes
Jesus Reyes wrote
Sorry about the dbgrid one, btw, cracker classes are sometimes called "access" classes but in this case I think it really made justice to the name, have you tried that on fpc 2.2.2 and current 2.3.1?. If it gets applied it has to be temporal and as such, we need a patch for fpc also and another taking in count the patched fpc (but that can wait of course), if the fpc patch doesn't make it, it's unlikely the crack will be commited.

I did produce some patch, see my mail "FCL-DB: Extend TLookupList so it can be used as picklist source" in the fpc-devel list. However, it seems there are even fewer reviewers in FPC team than Lazarus team ;-)

At least I would like to replace replace 'private' with 'protected' in TLookupList definition --
this trivial change could be even applied to fixes branch, and then Lazarus code can be updated to
use 'access' instead of 'cracker'.

Alexander S. Klenin Insight Experts Ltd.

Reply by email

Jesus Reyes

--- El jue 11-dic-08, Alexander Klenin escribi?:
[snip]

Show quoted text 16 lines
I did produce some patch, see my mail "FCL-DB: Extend TLookupList so it can be used as picklist source" in the fpc-devel list. However, it seems there are even fewer reviewers in FPC team than Lazarus team ;-) At least I would like to replace replace 'private' with 'protected' in TLookupList definition -- this trivial change could be even applied to fixes branch, and then Lazarus code can be updated to use 'access' instead of 'cracker'.

It would be very good that this is included in next fpc release, let hope they are looking at this and there is still time for it.

Jesus Reyes A.

?Todo sobre Amor y Sexo!
La gu?a completa para tu vida en Mujer de Hoy.
http://mx.mujer.yahoo.com/

Reply by email

Luiz Americo Pereira Camara
to Florian Klaempfl: This can be done with an svn branch as well? I'am rather sure the lazarus people give you…
Florian Klaempfl wrote 23 lines
Alexander Klenin schrieb: > On Thu, Dec 11, 2008 at 20:16, Florian Klaempfl wrote: > >> Alexander Klenin schrieb: >> >>> I.e. my specific problem can be solved in SVN by creating a branch of TAChart >>> component and giving me commit access to it, but then >>> similar branch should be created for my patches to DBGrid, >>> and yet another one for patches to SynEdit (both stalled for about a month now), >>> etc. >>> Obviously, this is not a scalable solution for many developers ;-) >>> >>> >> But isn't the problem that the patches don't get into the central >> repository? >> > They will get there eventually. The key thing is that patches can be 'batched' > for review/application and not spoon-fed one by one. > This can be done with an svn branch as well? I'am rather sure the lazarus people give you write access to a branch if you ask.

Yes. But other developers (like me) may want their branches that will require some admin effort (create branch, give access rights) from the main developers tree. With DVCS you start your own branch without incommode nobody.

An real example:
- i'm the developer of the Sqlite component shipped with fpc.
- Previously i worked locally and send various fixes as a patch to the fpc team. They complained.
- Then i started to send each change separately. So i was developing a change and then sending a patch separately. But i have other things to improve/fix and i had to wait to apply before i start another feature or fix.
- my solution: i created a mirror in my svn repository ( http://code.google.com/p/luipack/source/browse/#svn/trunk/sqlite/dataset ) and i commit each change to my svn separately and then send the changes in order. The ugly part is that there's no way to create the patches directly
from my svn i have to copy the files of a revision (if fpc is sync with rev 5, i copy rev 6) from my repository to the fpc repository then create a patch and sent. Them i wait to apply. Them i can do the same for rev 7. Very ugly.

Show quoted text 7 lines
And this has a real advantage: if you just commit your changes to your local repository, the changes get lost if you "disappear" and nobody did pull them yet (this is also why we recommend to attach patches to "bug reports", they won't get lost this way), the patches are lost. If they are in a svn branch, they aren't lost.

You can publish your branch in the net. There are several free services that do that.

Remember that are other DVCS than git. (git is bad because of your complex installation at windows)

Luiz

Reply by email

Paul Ishenin
to Luiz Americo Pereira Camara
Luiz Americo Pereira Camara wrote
An real example: - i'm the developer of the Sqlite component shipped with fpc.

Then maybe the best for you is to ask about write access to the SqlLite subtree of fpc trunk?

Same for Alexander Klenin - if you need to update TAChart very often then ask about write access to svn/lazarus/trunk/components/tachart

Best regards,
Paul Ishenin.

Reply by email

Alexander Klenin
to Paul Ishenin
Paul Ishenin wrote
Same for Alexander Klenin - if you need to update TAChart very often then ask about write access to svn/lazarus/trunk/components/tachart

Yes, it can be a workaround for my particular case, so whom should I ask?

In general, though, patch review is a good thing too -- e.g., while applying my latest patch to TAChart, Darius made a compatibility fix, which could be missed if the code went straight to trunk.

Alexander S. Klenin Insight Experts Ltd.

Reply by email

Alexander Klenin
to Jesus Reyes: --- El jue 11-dic-08, Alexander Klenin escribi?: [snip] Sorry about the dbgrid one, btw,…
Jesus Reyes wrote
If it gets applied it has to be temporal and as such, we need a patch for fpc also and another taking in count the patched fpc (but that can wait of course), if the fpc patch doesn't make it, it's unlikely the crack will be commited.

Of course, see http://bugs.freepascal.org/view.php?id=12787 I did not produce the patch since it is trivial and will likely become outdated when the time will come to apply it.

Alexander S. Klenin Insight Experts Ltd.

Reply by email

Vincent Snijders
to Alexander Klenin
Alexander Klenin wrote 7 lines
On Fri, Dec 12, 2008 at 01:32, Jesus Reyes wrote: > If it gets applied it has to be temporal and as such, we need a patch for fpc also and another taking in count the patched fpc (but that can wait of course), if the fpc patch doesn't make it, it's unlikely the crack will be commited. Of course, see http://bugs.freepascal.org/view.php?id=12787 I did not produce the patch since it is trivial and will likely become outdated when the time will come to apply it.

Why would it become outdated? Reviewing and commtting an IFDEF should not take too long, if you have tested both 2.2.2 and 2.3.1.

Vincent

Reply by email

Alexander Klenin
to Florian Klaempfl
Florian Klaempfl wrote 8 lines
Alexander Klenin schrieb: > On Fri, Dec 12, 2008 at 11:39, Paul Ishenin wrote: >> Same for Alexander Klenin - if you need to update TAChart very often >> then ask about write access to svn/lazarus/trunk/components/tachart > > Yes, it can be a workaround for my particular case, so whom should I ask? For FPC ask me ;)

I would love to contribute to FPC, but it is much harder to create (non-trivial) contribution then to Lazarus, and I simply do not have enough time.

Meanwhile, you can review my trivial contribution here ;-) http://bugs.freepascal.org/view.php?id=12566

Alexander S. Klenin Insight Experts Ltd.

Reply by email

Joost van der Sluis
to Alexander Klenin

Op vrijdag 12-12-2008 om 18:54 uur [tijdzone +1000], schreef Alexander Klenin:

Show quoted text 15 lines
On Fri, Dec 12, 2008 at 18:27, Florian Klaempfl wrote: > Alexander Klenin schrieb: >> On Fri, Dec 12, 2008 at 11:39, Paul Ishenin wrote: >>> Same for Alexander Klenin - if you need to update TAChart very often >>> then ask about write access to svn/lazarus/trunk/components/tachart >> >> Yes, it can be a workaround for my particular case, so whom should I ask? > > For FPC ask me ;) I would love to contribute to FPC, but it is much harder to create (non-trivial) contribution then to Lazarus, and I simply do not have enough time. Meanwhile, you can review my trivial contribution here ;-) http://bugs.freepascal.org/view.php?id=12566

There are many, many bugs in fpc which can be solved by trivial patches like this one. So there's enough to do. ;)

Joost.

Reply by email

Luiz Americo Pereira Camara
to Florian Klaempfl: For FPC ask me ;)
Florian Klaempfl wrote 11 lines
Alexander Klenin schrieb: > On Fri, Dec 12, 2008 at 11:39, Paul Ishenin wrote: > >> Same for Alexander Klenin - if you need to update TAChart very often >> then ask about write access to svn/lazarus/trunk/components/tachart >> > Yes, it can be a workaround for my particular case, so whom should I ask? > For FPC ask me ;

It would be helpful having svn write access to fpc sqlite directory. Is there any specific rules?

Luiz

Reply by email

Florian Klaempfl
to Luiz Americo Pereira Camara
Show quoted text 14 lines
Florian Klaempfl escreveu: > Alexander Klenin schrieb: > >> On Fri, Dec 12, 2008 at 11:39, Paul Ishenin wrote: >> >>> Same for Alexander Klenin - if you need to update TAChart very often >>> then ask about write access to svn/lazarus/trunk/components/tachart >>> >> Yes, it can be a workaround for my particular case, so whom should I ask? >> > For FPC ask me ; It would be helpful having svn write access to fpc sqlite directory. Is there any specific rules?

Of fcl-db? Ask Joost if it's ok then I'll add you.

Reply by email

Joost van der Sluis
to Florian Klaempfl

Op zondag 14-12-2008 om 10:18 uur [tijdzone +0100], schreef Florian Klaempfl:

Show quoted text 17 lines
Luiz Americo Pereira Camara schrieb: > Florian Klaempfl escreveu: >> Alexander Klenin schrieb: >> >>> On Fri, Dec 12, 2008 at 11:39, Paul Ishenin wrote: >>> >>>> Same for Alexander Klenin - if you need to update TAChart very often >>>> then ask about write access to svn/lazarus/trunk/components/tachart >>>> >>> Yes, it can be a workaround for my particular case, so whom should I ask? >>> >> For FPC ask me ; > > It would be helpful having svn write access to fpc sqlite directory. > Is there any specific rules? Of fcl-db? Ask Joost if it's ok then I'll add you.

That's ok.

Joost.

Reply by email

Unknown author
to Joost van der Sluis
Show quoted text 29 lines
Mensagem Original: Data: 20:26:35 14/12/2008 De: Joost van der Sluis Assunto: Re: [Lazarus] TAChart: Request to review/apply patch 12758 Op zondag 14-12-2008 om 10:18 uur [tijdzone +0100], schreef Florian Klaempfl: > Luiz Americo Pereira Camara schrieb: > > Florian Klaempfl escreveu: > >> Alexander Klenin schrieb: > >> > >>> On Fri, Dec 12, 2008 at 11:39, Paul Ishenin wrote: > >>> > >>>> Same for Alexander Klenin - if you need to update TAChart very often > >>>> then ask about write access to svn/lazarus/trunk/components/tachart > >>>> > >>> Yes, it can be a workaround for my particular case, so whom > should I ask? > >>> > >> For FPC ask me ; > > > > It would be helpful having svn write access to fpc sqlite directory. > > Is there any specific rules? > > Of fcl-db? Ask Joost if it's ok then I'll add you. That's ok.

Thanks. What should i do?

Luiz
-------------------------------------------------------------------------------- Na Oi Internet voc? ganha ou ganha. Al?m de acesso gr?tis com qualidade, voc? pode ter contas ilimitadas de email com 1 giga cada uma, suporte gr?tis e muito mais. Baixe gr?tis o Discador Oi em http://www.oi.com.br/discador e comece a ganhar.

Agora, se o seu neg?cio ? voar alto na internet,
assine Oi Internet Banda Larga e ganhe o modem gr?tis. Clique em http://www.oi.com.br/bandalarga e aproveite essa moleza!

Reply by email