All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v7 00/11] transport-helper: updates
@ 2013-11-12 20:56 Felipe Contreras
  2013-11-12 20:56 ` [PATCH v7 01/11] transport-helper: fix extra lines Felipe Contreras
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: Felipe Contreras @ 2013-11-12 20:56 UTC (permalink / raw)
  To: git; +Cc: Richard Hansen, Felipe Contreras

Hi,

Here are the patches that allow transport helpers to be completely transparent;
renaming branches, deleting them, custom refspecs, --force, --dry-run,
reporting forced update, everything works.

Changes since v6:

diff --git a/contrib/remote-helpers/test-hg.sh b/contrib/remote-helpers/test-hg.sh
index 72f745d..aacd8a9 100755
--- a/contrib/remote-helpers/test-hg.sh
+++ b/contrib/remote-helpers/test-hg.sh
@@ -599,7 +599,7 @@ test_expect_success 'remote big push fetch first' '
 	)
 '
 
-test_expect_failure 'remote big push force' '
+test_expect_success 'remote big push force' '
 	test_when_finished "rm -rf hgrepo gitrepo*" &&
 
 	setup_big_push
@@ -629,7 +629,7 @@ test_expect_failure 'remote big push force' '
 	check_bookmark hgrepo new_bmark six
 '
 
-test_expect_failure 'remote big push dry-run' '
+test_expect_success 'remote big push dry-run' '
 	test_when_finished "rm -rf hgrepo gitrepo*" &&
 
 	setup_big_push
diff --git a/transport-helper.c b/transport-helper.c
index 2257588..7a95125 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -863,7 +863,7 @@ static int push_refs_with_export(struct transport *transport,
 
 	if (flags & TRANSPORT_PUSH_FORCE) {
 		if (set_helper_option(transport, "force", "true") != 0)
-			die("helper %s does not support 'force'", data->name);
+			warning("helper %s does not support 'force'", data->name);
 	}
 
 	helper = get_helper(transport);

Felipe Contreras (10):
  transport-helper: fix extra lines
  transport-helper: don't update refs in dry-run
  transport-helper: add 'force' to 'export' helpers
  transport-helper: check for 'forced update' message
  fast-export: improve argument parsing
  fast-export: add new --refspec option
  transport-helper: add support for old:new refspec
  fast-import: add support to delete refs
  fast-export: add support to delete refs
  transport-helper: add support to delete branches

Richard Hansen (1):
  test-hg.sh: tests are now expected to pass

 Documentation/git-fast-export.txt   |  4 +++
 Documentation/git-fast-import.txt   |  3 +++
 Documentation/gitremote-helpers.txt |  4 +++
 builtin/fast-export.c               | 49 ++++++++++++++++++++++++++++++++++++-
 contrib/remote-helpers/test-hg.sh   |  4 +--
 fast-import.c                       | 13 +++++++---
 git-remote-testgit.sh               | 18 ++++++++++++++
 t/t5801-remote-helpers.sh           | 23 ++++++++++++++++-
 t/t9300-fast-import.sh              | 18 ++++++++++++++
 t/t9350-fast-export.sh              | 18 ++++++++++++++
 transport-helper.c                  | 47 +++++++++++++++++++++++------------
 11 files changed, 179 insertions(+), 22 deletions(-)

-- 
1.8.4.2+fc1

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

end of thread, other threads:[~2013-11-18  5:09 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-12 20:56 [PATCH v7 00/11] transport-helper: updates Felipe Contreras
2013-11-12 20:56 ` [PATCH v7 01/11] transport-helper: fix extra lines Felipe Contreras
2013-11-12 20:56 ` [PATCH v7 02/11] transport-helper: don't update refs in dry-run Felipe Contreras
2013-11-12 20:56 ` [PATCH v7 03/11] transport-helper: add 'force' to 'export' helpers Felipe Contreras
2013-11-12 20:56 ` [PATCH v7 04/11] transport-helper: check for 'forced update' message Felipe Contreras
2013-11-12 20:56 ` [PATCH v6 05/10] fast-export: improve argument parsing Felipe Contreras
2013-11-12 20:56 ` [PATCH v7 05/11] test-hg.sh: tests are now expected to pass Felipe Contreras
2013-11-12 20:57 ` [PATCH v6 06/10] fast-export: add new --refspec option Felipe Contreras
2013-11-12 20:57 ` [PATCH v7 06/11] fast-export: improve argument parsing Felipe Contreras
2013-11-12 20:57 ` [PATCH v7 07/11] fast-export: add new --refspec option Felipe Contreras
2013-11-12 20:57 ` [PATCH v6 07/10] transport-helper: add support for old:new refspec Felipe Contreras
2013-11-12 20:57 ` [PATCH v6 08/10] fast-import: add support to delete refs Felipe Contreras
2013-11-12 20:57 ` [PATCH v7 08/11] transport-helper: add support for old:new refspec Felipe Contreras
2013-11-12 20:57 ` [PATCH v6 09/10] fast-export: add support to delete refs Felipe Contreras
2013-11-12 20:57 ` [PATCH v7 09/11] fast-import: " Felipe Contreras
2013-11-12 20:57 ` [PATCH v7 10/11] fast-export: " Felipe Contreras
2013-11-12 20:57 ` [PATCH v6 10/10] transport-helper: add support to delete branches Felipe Contreras
2013-11-12 20:57 ` [PATCH v7 11/11] " Felipe Contreras
2013-11-12 22:24 ` [PATCH v7 00/11] transport-helper: updates Junio C Hamano
2013-11-18  5:08 ` [PATCH v3] remote-bzr: support the new 'force' option Richard Hansen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.