1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-17 06:25:13 +01:00
git/contrib/git-svn/t
Eric Wong a00439acd2 git-svn: add --follow-parent and --no-metadata options to fetch
--follow-parent:
  This is especially helpful when we're tracking a directory
  that has been moved around within the repository, or if we
  started tracking a branch and never tracked the trunk it was
  descended from.

  This relies on the SVN::* libraries to work.  We can't
  reliably parse path info from the svn command-line client
  without relying on XML, so it's better just to have the SVN::*
  libs installed.

  This also removes oldvalue verification when calling update-ref

  In SVN, branches can be deleted, and then recreated under the
  same path as the original one with different ancestry
  information, causing parent information to be mismatched /
  misordered.

  Also force the current ref, if existing, to be a parent,
  regardless of whether or not it was specified.

--no-metadata:
  This gets rid of the git-svn-id: lines at the end of every commit.

  With this, you lose the ability to use the rebuild command.  If
  you ever lose your .git/svn/git-svn/.rev_db file, you won't be
  able to fetch again, either.  This is fine for one-shot imports.

  Also fix some issues with multi-fetch --follow-parent that were
  exposed while testing this.  Additionally, repack checking is
  simplified greatly.

  git-svn log will not work on repositories using this, either.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
2006-06-28 03:20:50 -07:00
..
lib-git-svn.sh git-svn: SVN 1.1.x library compatibility 2006-06-28 03:20:29 -07:00
t0000-contrib-git-svn.sh git-svn: SVN 1.1.x library compatibility 2006-06-28 03:20:29 -07:00
t0001-contrib-git-svn-props.sh git-svn: SVN 1.1.x library compatibility 2006-06-28 03:20:29 -07:00
t0002-deep-rmdir.sh git-svn: fix --rmdir when using SVN:: libraries 2006-06-20 01:31:57 -07:00
t0003-graft-branches.sh git-svn: several graft-branches improvements 2006-06-28 03:20:50 -07:00
t0004-follow-parent.sh git-svn: add --follow-parent and --no-metadata options to fetch 2006-06-28 03:20:50 -07:00
t0005-commit-diff.sh git-svn: add the commit-diff command 2006-06-28 03:20:50 -07:00