public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Matthieu Moy <Matthieu.Moy@imag•fr>
To: skillzero@gmail•com
Cc: Sanjiv Gupta <sanjiv.gupta@microchip•com>,
	Kai Blin <kai@samba•org>, Nanako Shiraishi <nanako3@lavabit•com>,
	git@vger•kernel.org
Subject: Re: Pulling one commit at a time.
Date: Mon, 24 Aug 2009 10:41:31 +0200	[thread overview]
Message-ID: <vpqfxbhd2o4.fsf@bauges.imag.fr> (raw)
In-Reply-To: <2729632a0908240133t12eaafd5oe8d50af6d6eec566@mail.gmail.com> (skillzero@gmail.com's message of "Mon\, 24 Aug 2009 01\:33\:46 -0700")

skillzero@gmail•com writes:

> On Mon, Aug 24, 2009 at 12:55 AM, Sanjiv
> Gupta<sanjiv.gupta@microchip•com> wrote:
>
>> What I would like is to "test *every* commit" available in the public
>> master. There would be no local changes or commits that aren't pushed in the
>> private copy.
>> So I just want to clone one copy from the public master and then just keep
>> pulling commits from the public master one by one and run regressions on
>> each one.
>>
>> It's a damn simple thing in SVN world.
>> $ svn info will give you the current version you are at, assume it is
>> "cur_rev"
>> $ svn update -r `expr $cur_rev + 1`
>> $ build
>> $ test
>
> I'm not sure if this is the best way, but you can use git fetch to get
> the latest stuff from the server without merging it then you can merge
> from origin/master (i.e. the server) into your local master, one
> commit at a time, and verify at each step:

See my other reply, but I really don't think you want to _merge_ one
commit at a time. This would not mean "test each commit" but "test the
interaction between any two commits", which few people would care
about.

The example above in SVN doesn't merge each commit, it just walks
history (assuming the history is linear, the example wouldn't be as
simple if it had to walk /branches/* too). To continue the analogy,
merging commits one by one in Git would be more or less the equivalent
in SVN of:

$ svn status
# Hmm, OK, I have stuff to commit.
$ test
# Yes, it works. But do my changes work too on top of the previous
# commits?
$ while ...; do
    svn update $(($cur_rev - 1))
    build
    test
  done
# If so, then
$ svn update
$ svn commit

That is: test the interaction between your new change with any other
changes in the repository. 'never seen anyone interested by such
thing, but why not ;-).

-- 
Matthieu

  reply	other threads:[~2009-08-24  8:42 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <F536B7C316F9474E9F7091239725AC9A02FA7F44@CHN-CL-MAIL01.mchp-main.com>
2009-08-23 16:48 ` Pulling one commit at a time Sanjiv Gupta
2009-08-23 20:11   ` Alex Riesen
2009-08-23 20:17   ` Adam Brewster
2009-08-23 20:19   ` Sam Vilain
2009-08-23 21:07   ` Nanako Shiraishi
2009-08-23 22:33     ` Junio C Hamano
2009-08-24  6:22     ` Sanjiv Gupta
2009-08-24  7:46       ` Kai Blin
2009-08-24  7:55         ` Sanjiv Gupta
2009-08-24  8:20           ` Sean Estabrooks
2009-08-24  8:20           ` Erik Faye-Lund
2009-08-24  8:22             ` Erik Faye-Lund
2009-08-24  8:28           ` Matthieu Moy
2009-08-24  8:33           ` skillzero
2009-08-24  8:41             ` Matthieu Moy [this message]
2009-08-24 10:22       ` David Aguilar
2009-08-24 10:49         ` Sanjiv Gupta
2009-08-24 11:07           ` Matthieu Moy
2009-08-24 18:19       ` Avery Pennarun
2009-08-24 19:08         ` Sanjiv Gupta

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vpqfxbhd2o4.fsf@bauges.imag.fr \
    --to=matthieu.moy@imag$(echo .)fr \
    --cc=git@vger$(echo .)kernel.org \
    --cc=kai@samba$(echo .)org \
    --cc=nanako3@lavabit$(echo .)com \
    --cc=sanjiv.gupta@microchip$(echo .)com \
    --cc=skillzero@gmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox