Re: Git out of sync vs. CVS

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "peter_e" <peter_e(at)gmx(dot)net>, "Magnus Hagander" <magnus(at)hagander(dot)net>, "pgsql-hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Git out of sync vs. CVS
Date: 2010-01-19 17:02:49
Message-ID: 4B559159020000250002E773@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> writes:
>> Oh, and what sort of delay do you feel would be "long enough to
>> cover any cvs commit including potential network slowness during
>> it etc."?
>
> Why should the script make any assumptions about delay at all?
> It seems to me that the problem comes from failing to check for
> changed files, no more and no less. It would be much less of an
> issue if a non-atomic CVS commit showed up as two separate GIT
> commits with similar log messages.

I was trying to be accommodating; if Magnus's take on this isn't a
consensus, I'll put forward in a little more detail what I had in
mind.

What we did with our scripts was to grab the current time *from the
CVS server* (since not all clocks are necessarily set accurately)
and using that as the end of a time range. The end of the previous
time range was recorded on successful completion; we would us that
as the start of a time range. Done carefully, that allows no
commits to be missed. The only way something could be done twice
would be for the process to die after it had pushed through some
changes and before it reached completion and saved the time.

Now, I haven't looked at the fromcvs code yet to know how easy or
hard it would be to use this logic within that package, so this is
still pretty hand-wavy.

-Kevin

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Aidan Van Dyk 2010-01-19 17:06:04 Re: Git out of sync vs. CVS
Previous Message Michael Meskes 2010-01-19 16:58:16 Re: ECPG patch 4.1, out-of-scope cursor support in native mode