From: Roy Lee Date: Wed, 02 Jun 2010 07:55:11 GMT Subject: Re: How to add daily tags for a central repo? Message-ID: In-Reply-To: <7vaareoxmv.fsf@alter.siamese.dyndns.org> Hi, On Wed, Jun 2, 2010 at 12:40 PM, Junio C Hamano wrote: > Roy Lee writes: > >>> * Create a tag for the state of a ref (such as HEAD) on the central repo >>> at a specific date and time. >> >> Yes, for the daily build stuff. > > If this is really "the daily build", the easiest is to > >  - arrange the "daily build" environment to be kept up-to-date (either >   developers will be pushing into it, or there is another canonical >   central repository developer pushes into, and the daily build >   repository pulls from that canonical central repository via cron just >   before starting to build); > >  - tag the version that is being built; and > >  - do the "daily build". > > Even if the automated "daily build" runs an hour after midnight, I > wouldn't imagine that you would want to grab the version that was the > latest as of midnight, building that slightly stale one, excluding the > development that happened within an our since that version. The daily build process for our company is still under development. I'll feel more comfortable if the timing of tagging can be decoupled with the target revision date. In case one day the mechanism is asked to tag more branches on during different time interval or even backtrack to snapshots earlier than now. So far, the reflog mechanism seems to be able to fulfill this requirement, since it allows us to backtrack earlier updates and do the tagging. I'm taking it as a starting point or as a building block unless more attractive alternatives show up. Regards, Roy