git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v7 p2 0/2] fast-export fixes
@ 2012-11-28 22:23 Felipe Contreras
  2012-11-28 22:23 ` [PATCH v7 p2 1/2] fast-export: don't handle uninteresting refs Felipe Contreras
  2012-11-28 22:24 ` [PATCH v7 p2 2/2] fast-export: make sure updated refs get updated Felipe Contreras
  0 siblings, 2 replies; 6+ messages in thread
From: Felipe Contreras @ 2012-11-28 22:23 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Jeff King, Felipe Contreras

Hi,

Here's version 7 part 2; I've dropped all the unnecessary patches, nobody seems
to care about the current brokedness, and I did them only to show that these
are correct, and that remote helpers without marks just don't work. These are
the ones I care about.

Below is a summary of what happens when you apply both patches, and how the new
behavior is obviously correct. All the refs point to the same object.

== before ==

  % git fast-export --export--marks=marks master
  # exported stuff
  % git fast-export --{import,export}-marks=marks test
  # nothing
  % git fast-export --{import,export}-marks=marks master ^uninteresting
  reset refs/heads/uninteresting
  from :6

  % git fast-export --{import,export}-marks=marks ^uninteresting master ^foo test
  reset refs/heads/test
  from :6

  reset refs/heads/foo
  from :6

  reset refs/heads/master
  from :6

  % git fast-export --{import,export}-marks=marks uninteresting..master

== after ==

  % git fast-export --export--marks=marks master
  # exported stuff
  % git fast-export --{import,export}-marks=marks test
  reset refs/heads/test
  from :6

  % git fast-export --{import,export}-marks=marks master ^uninteresting
  reset refs/heads/master
  from :6

  % git fast-export --{import,export}-marks=marks ^uninteresting master ^foo test
  reset refs/heads/test
  from :6

  reset refs/heads/master
  from :6

  % git fast-export --{import,export}-marks=marks uninteresting..master
  reset refs/heads/master
  from :6

Changes since v6:

  * Drop all the extra patches
  * Reorder patches so tests never fail

Felipe Contreras (2):
  fast-export: don't handle uninteresting refs
  fast-export: make sure updated refs get updated

 builtin/fast-export.c     | 21 ++++++++++++++-------
 t/t5801-remote-helpers.sh | 28 ++++++++++++++++------------
 t/t9350-fast-export.sh    | 45 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 75 insertions(+), 19 deletions(-)

-- 
1.8.0.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-12-02  2:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-28 22:23 [PATCH v7 p2 0/2] fast-export fixes Felipe Contreras
2012-11-28 22:23 ` [PATCH v7 p2 1/2] fast-export: don't handle uninteresting refs Felipe Contreras
2012-11-29  1:16   ` Max Horn
2012-11-30  5:57     ` Felipe Contreras
2012-12-02  2:07       ` Junio C Hamano
2012-11-28 22:24 ` [PATCH v7 p2 2/2] fast-export: make sure updated refs get updated Felipe Contreras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).