# [BUG] git-svn not following svn moves

7 messages from 2007-10-18 to 2007-10-19. Participants: cho, Peter Baumann, Sam Vilain.
Thread: https://gitlist.dev/t/10357

## cho, 2007-10-18 11:20

Subject: [BUG] git-svn not following svn moves
Message-ID: <ff7fhg$2eu$1@ger.gmane.org>
URL: https://gitlist.dev/e/ff7fhg%242eu%241%40ger.gmane.org

```
Hello,

I have a git-svn checkout that apparently did not follow a move correctly.
The files are not present in an svn checkout, but are in a git svn clone.

According to a trac browser, some of the files that appear in my git 
checkout had in fact been moved to their separate branch before doing git-
svn clone. I noticed this when trying to commit changes to those files, 
getting the error message:
> Le système de fichiers ne contient pas cet élément: Fichier non 
trouvé : transaction '3926-1', chemin '.../composants.py' at /home/marc/
bin/git-svn line 2960
It's a standard subversion error, "Filesystem has no item"

I've made a clean checkout (with today's 1.5.3.4.206.g58ba4), and I still 
have the moved files present.
The clone command is just:
git svn clone --stdlayout svn+ssh://host/srv/subversion/proj/appli/proj

Tell me if I can give more info (the repository isn't public).

```

## Peter Baumann, 2007-10-18 12:13

Subject: Re: [BUG] git-svn not following svn moves
Message-ID: <20071018121328.GA5358@xp.machine.xx>
URL: https://gitlist.dev/e/20071018121328.GA5358%40xp.machine.xx
In-Reply-To: <ff7fhg$2eu$1@ger.gmane.org>

```
On Thu, Oct 18, 2007 at 11:20:16AM +0000, cho wrote:
> Hello,
> 
> I have a git-svn checkout that apparently did not follow a move correctly.
> The files are not present in an svn checkout, but are in a git svn clone.
> 
> According to a trac browser, some of the files that appear in my git 
> checkout had in fact been moved to their separate branch before doing git-
> svn clone. I noticed this when trying to commit changes to those files, 
> getting the error message:
> > Le système de fichiers ne contient pas cet élément: Fichier non 
> trouvé : transaction '3926-1', chemin '.../composants.py' at /home/marc/
> bin/git-svn line 2960
> It's a standard subversion error, "Filesystem has no item"
> 
> I've made a clean checkout (with today's 1.5.3.4.206.g58ba4), and I still 
> have the moved files present.
> The clone command is just:
> git svn clone --stdlayout svn+ssh://host/srv/subversion/proj/appli/proj
> 
> Tell me if I can give more info (the repository isn't public).
> 

Any chance you could provide a testcase which is similar to what happened
in your private repo so that the problem could be reproduced here?

-Peter

```

## cho, 2007-10-18 13:11

Subject: Re: [BUG] git-svn not following svn moves
Message-ID: <ff7m2j$2eu$2@ger.gmane.org>
URL: https://gitlist.dev/e/ff7m2j%242eu%242%40ger.gmane.org
In-Reply-To: <20071018121328.GA5358@xp.machine.xx>

```
Le Thu, 18 Oct 2007 14:13:28 +0200, Peter Baumann a écrit :
> Any chance you could provide a testcase which is similar to what
> happened in your private repo so that the problem could be reproduced
> here?

I've surprised myself but yes, there is a simple testcase.

svnadmin create repo
svn checkout file://$PWD/repo checkout
cd checkout/
svn mkdir trunk tags branches
svn ci -m 'Standard svn layout.'
cd trunk/
svn mkdir doc
touch doc/README
svn add doc/README
svn ci -m 'Add README.'
cd ..
svn mv trunk/ branches/oldtrunk
svn ci -m 'Moved trunk.'
svn mkdir trunk
svn ci -m 'New trunk.'
cd trunk/
touch THIS_IS_THE_NEW_TRUNK
svn add THIS_IS_THE_NEW_TRUNK
svn ci -m 'Add marker.'
cd ../..
git svn clone file://$PWD/repo --stdlayout git-clone
cd git-clone/
tree

So the testcase basically involves moving the trunk.
git-svn gets very confused and keeps a mixture of the old and new trunk.

```

## Sam Vilain, 2007-10-18 22:04

Subject: Re: [BUG] git-svn not following svn moves
Message-ID: <4717D85C.9050805@vilain.net>
URL: https://gitlist.dev/e/4717D85C.9050805%40vilain.net
In-Reply-To: <ff7m2j$2eu$2@ger.gmane.org>

```
cho wrote:
> I've surprised myself but yes, there is a simple testcase.
> 
> svnadmin create repo
> svn checkout file://$PWD/repo checkout
> cd checkout/
> svn mkdir trunk tags branches
> svn ci -m 'Standard svn layout.'
> cd trunk/
> svn mkdir doc
> touch doc/README
> svn add doc/README
> svn ci -m 'Add README.'
> cd ..
> svn mv trunk/ branches/oldtrunk
> svn ci -m 'Moved trunk.'
> svn mkdir trunk
> svn ci -m 'New trunk.'
> cd trunk/
> touch THIS_IS_THE_NEW_TRUNK
> svn add THIS_IS_THE_NEW_TRUNK
> svn ci -m 'Add marker.'
> cd ../..
> git svn clone file://$PWD/repo --stdlayout git-clone
> cd git-clone/
> tree
> 
> So the testcase basically involves moving the trunk.
> git-svn gets very confused and keeps a mixture of the old and new trunk.

Were you using --follow-parent or not?

Sam.

```

## cho, 2007-10-19 07:51

Subject: Re: [BUG] git-svn not following svn moves
Message-ID: <ff9nms$2eu$3@ger.gmane.org>
URL: https://gitlist.dev/e/ff9nms%242eu%243%40ger.gmane.org
In-Reply-To: <4717D85C.9050805@vilain.net>

```
Le Fri, 19 Oct 2007 11:04:12 +1300, Sam Vilain a écrit :

> cho wrote:
>> I've surprised myself but yes, there is a simple testcase.
>> 
svnadmin create repo
svn checkout file://$PWD/repo checkout cd checkout/
svn mkdir trunk tags branches
svn ci -m 'Standard svn layout.'
cd trunk/
svn mkdir doc
touch doc/README
svn add doc/README
svn ci -m 'Add README.'

# forgot this, sorry
svn up
cd ..
svn mv trunk/ branches/oldtrunk
svn ci -m 'Moved trunk.'
svn mkdir trunk
svn ci -m 'New trunk.'
cd trunk/
touch THIS_IS_THE_NEW_TRUNK
svn add THIS_IS_THE_NEW_TRUNK
svn ci -m 'Add marker.'
cd ../..
git svn clone file://$PWD/repo --stdlayout git-clone
cd git-clone/
tree

>> 
>> So the testcase basically involves moving the trunk. git-svn gets very
>> confused and keeps a mixture of the old and new trunk.
> 
> Were you using --follow-parent or not?

It's the same whether I use --follow-parent or --no-follow-parent .

```

## cho, 2007-10-19 08:17

Subject: Re: [BUG] git-svn not following svn moves
Message-ID: <ff9p7m$2eu$4@ger.gmane.org>
URL: https://gitlist.dev/e/ff9p7m%242eu%244%40ger.gmane.org
In-Reply-To: <4717D85C.9050805@vilain.net>

```
Vendredi 19 Octobre 2007 à 11:04:12 +1300, Sam Vilain a écrit :

> cho wrote:
>> svn ci -m 'Add README.'
# forgot this:
svn up

>> cd ..
>> svn mv trunk/ branches/oldtrunk
>> 
>> So the testcase basically involves moving the trunk. git-svn gets very
>> confused and keeps a mixture of the old and new trunk.
> 
> Were you using --follow-parent or not?

The result is the same, whether I use --follow-parent
or --no-follow-parent .

```

## cho, 2007-10-19 08:30

Subject: Re: [BUG] git-svn not following svn moves
Message-ID: <pan.2007.10.19.08.30.47@gmail.com>
URL: https://gitlist.dev/e/pan.2007.10.19.08.30.47%40gmail.com
In-Reply-To: <4717D85C.9050805@vilain.net>

```
Le Fri, 19 Oct 2007 11:04:12 +1300, Sam Vilain a écrit :

> cho wrote:
>> svn ci -m 'Add README.'
# forgot this
svn up

>> So the testcase basically involves moving the trunk. git-svn gets very
>> confused and keeps a mixture of the old and new trunk.
> 
> Were you using --follow-parent or not?

It's the same, with --follow-parent and with --no-follow-parent .

```
