-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
svn: allow branches outside of refs/remotes
It may be convenient for some users to store svn remote tracking branches outside of the refs/remotes/ heirarchy. To accomplish this feat, this patch includes the entire path to the ref in $r->{'refname'} in &read_all_remotes and tries to change references to this entry so the new value makes sense. [ew: fixed backwards compatibility, long lines] Signed-off-by: Adam Brewster <adambrewster@gmail.com> Signed-off-by: Eric Wong <normalperson@yhbt.net>
- Loading branch information
Adam Brewster
authored and
Eric Wong
committed
Aug 13, 2009
1 parent
b186a26
commit 6f5748e
Showing
6 changed files
with
96 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/sh | ||
# | ||
# Copyright (c) 2009 Eric Wong | ||
|
||
test_description='git svn old rev_map preservd' | ||
. ./lib-git-svn.sh | ||
|
||
test_expect_success 'setup test repository with old layout' ' | ||
mkdir i && | ||
(cd i && > a) && | ||
svn_cmd import -m- i "$svnrepo" && | ||
git svn init "$svnrepo" && | ||
git svn fetch && | ||
test -d .git/svn/refs/remotes/git-svn/ && | ||
! test -e .git/svn/git-svn/ && | ||
mv .git/svn/refs/remotes/git-svn .git/svn/ && | ||
rm -r .git/svn/refs | ||
' | ||
|
||
test_expect_success 'old layout continues to work' ' | ||
svn_cmd import -m- i "$svnrepo/b" && | ||
git svn rebase && | ||
echo a >> b/a && | ||
git add b/a && | ||
git commit -m- -a && | ||
git svn dcommit && | ||
! test -d .git/svn/refs/ && | ||
test -e .git/svn/git-svn/ | ||
' | ||
|
||
test_done |