Re: [PATCH v2 4/4] fast-export: make sure refs are updated properly
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Oct 30, 2012, 21:35 UTC
- Message-ID
- <CAMP44s2QwdZKqJq0BZ5HOtZYiCMxCxycui9EmxxfL+Sa6M_6+g@mail.gmail.com>
- In-Reply-To
- <CAGdFq_jJwZMLq=3co13hs7gas6y9kZRTKwcT+CP=n6-24Uv5Og@mail.gmail.com>
On Tue, Oct 30, 2012 at 10:17 PM, Sverre Rabbelier <srabbelier@gmail.com> wrote:
Show 7 quoted lines
> On Tue, Oct 30, 2012 at 11:47 AM, Felipe Contreras > <felipe.contreras@gmail.com> wrote: >> Why would it? We are not changing the way objects are exported, the >> only difference is what happens at the end >> (handle_tags_and_duplicates()). > > Because the marking is per-commit, not per-ref, right?
Oh, you meant using marks?
It doesn't matter anyway, because get_tags_and_duplicates() would get 'one' on the first run, and 'two' on the second.
If you meant something like this: % git fast-export $marks_args one % git fast-export $marks_args one two
Then yeah, 'one' will be updated once again in the second command, but there's nothing fatal about it, and your patch series had the same result.
> Perhaps you > could add a simple test case to make sure it works as expected? > Something along the lines of the scenario I described in my previous > email?
I'm not sure what that test should be doing.
Cheers.
-- Felipe Contreras