* Bug in svn-fe: copying the root directory acts as if it's an empty directory
@ 2012-03-07 23:13 Andrew Sayers
2012-03-08 0:46 ` David Barr
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Sayers @ 2012-03-07 23:13 UTC (permalink / raw)
To: Git Mailing List
Here's a bug with svn-fe that I stumbled over while snorkelling through
repo madness. I've tested it with the version of svn-fe in git.git's
master branch.
Copying the root directory to a sub-directory (e.g. doing `svn cp .
trunk` to standardise your layout) doesn't correctly initialise the new
directory. To replicate the issue, run the following script from an
empty directory (update GIT_DIR to point to your git.git repository):
GIT_DIR="/home/andrew/git/git"
ROOT_DIR="$(pwd)"
svnadmin create repo
svn checkout "file://$ROOT_DIR/repo" checkout
cd checkout
echo text > README.txt
svn add README.txt
svn ci -m "Created README.txt"
svn cp "file://$ROOT_DIR/repo" "file://$ROOT_DIR/repo/trunk" \
-m "Created trunk"
cd ..
mkfifo backchannel
mkdir git-repo
cd git-repo/
git init
svnadmin dump --deltas "$ROOT_DIR/repo" \
| "$GIT_DIR/contrib/svn-fe/svn-fe" 3<../backchannel \
| "$GIT_DIR/git-fast-import" --cat-blob-fd=3 3>../backchannel
Expected: the git repo contains "README.txt" and "trunk/README.txt"
Observed: "README.txt" exists but "trunk/README.txt" doesn't
- Andrew
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bug in svn-fe: copying the root directory acts as if it's an empty directory
2012-03-07 23:13 Bug in svn-fe: copying the root directory acts as if it's an empty directory Andrew Sayers
@ 2012-03-08 0:46 ` David Barr
0 siblings, 0 replies; 2+ messages in thread
From: David Barr @ 2012-03-08 0:46 UTC (permalink / raw)
To: Andrew Sayers; +Cc: Git Mailing List, Jonathan Nieder, Dmitry Ivankov
Hi Andrew,
On Thu, Mar 8, 2012 at 10:13 AM, Andrew Sayers
<andrew-git@pileofstuff.org> wrote:
> Here's a bug with svn-fe that I stumbled over while snorkelling through
> repo madness. I've tested it with the version of svn-fe in git.git's
> master branch.
>
> Copying the root directory to a sub-directory (e.g. doing `svn cp .
> trunk` to standardise your layout) doesn't correctly initialise the new
> directory.
This issue sounds very familiar, I wonder if there's an existing test
or pending patch for it? Maybe Dmitry or Jonathan can recall.
> To replicate the issue, run the following script from an
> empty directory (update GIT_DIR to point to your git.git repository):
>
> GIT_DIR="/home/andrew/git/git"
> ROOT_DIR="$(pwd)"
>
> svnadmin create repo
> svn checkout "file://$ROOT_DIR/repo" checkout
> cd checkout
> echo text > README.txt
> svn add README.txt
> svn ci -m "Created README.txt"
> svn cp "file://$ROOT_DIR/repo" "file://$ROOT_DIR/repo/trunk" \
> -m "Created trunk"
> cd ..
> mkfifo backchannel
> mkdir git-repo
> cd git-repo/
> git init
> svnadmin dump --deltas "$ROOT_DIR/repo" \
> | "$GIT_DIR/contrib/svn-fe/svn-fe" 3<../backchannel \
> | "$GIT_DIR/git-fast-import" --cat-blob-fd=3 3>../backchannel
>
> Expected: the git repo contains "README.txt" and "trunk/README.txt"
> Observed: "README.txt" exists but "trunk/README.txt" doesn't
Thanks for including a reproduction.
--
David Barr
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-08 0:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-07 23:13 Bug in svn-fe: copying the root directory acts as if it's an empty directory Andrew Sayers
2012-03-08 0:46 ` David Barr
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).