git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] svn: Add && to t9107-git-svn-migrarte.sh

From
Adam Brewster <adambrewster@gmail.com>
Date
Aug 12, 2009, 03:14 UTC
Message-ID
<1250046867-13655-1-git-send-email-adambrewster@gmail.com>
In-Reply-To
<20090810083234.GA8698@dcvr.yhbt.net>
Eric,
Any thoughts on the other patch?
Am I close or is there a better way to go about this?
I didn't really know what to do with .git/svn/*.  The easy answer is
  mkdir -p $GIT_DIR/svn/refs/remotes &&
  mv $GIT_DIR/svn/* $GIT_DIR/svn/refs/remotes
>From the comments in the Migration module, it seems like that's frowned

upon, so I came up with looking for .rev_map (or .rev_db) in both locations (.git/svn/git-svn and .git/svn/refs/remotes/svn) and letting it stay in whichever location it already exists. (The next email has a slightly improved version of the patch.)

This solution is particularly inelegant in it's handling of unhandled.log, but as far as I know that file is unused.

There's also the problem of what to do if someone has a ref called ref/remotes/refs/remotes/..., but that seems unlikely enough to not cause concern.

Adam
Previous: Eric WongNext: Adam Brewster
Message 8 of 12 in “svn manipulate refs ourside refs/remotes”
  1. svn manipulate refs ourside refs/remotesAdam Brewster, Aug 4, 2009
  2. svn: Add && to t9107-git-svn-migrarte.shAdam Brewster, Aug 4, 2009
  3. svn: Honor --prefix option in init without --stdlayoutAdam Brewster, Aug 4, 2009
  4. svn: allow git-svn to update remotes outside of refs/remotesAdam Brewster, Aug 4, 2009
  5. Eric WongAug 10, 2009
  6. Eric WongAug 6, 2009
  7. Eric WongAug 10, 2009
  8. Adam BrewsterAug 12, 2009
  9. svn: allow branches outside of refs/remotesAdam Brewster, Aug 12, 2009
  10. Eric WongAug 12, 2009
  11. Adam BrewsterAug 13, 2009
  12. Eric WongAug 13, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.