You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by jlm <js...@earthlink.net> on 2004/03/20 11:56:50 UTC

Corrupt repository, or just incorrect usage.

I think I may have corrupted my repository, and would like to get it
fixed. Here is the situation.

I wanted to make a branch. My project files were all in the root of the
repository, so I made a directory called main (svn mkdir), and then did
a svn mv on all of the files into the directory.

I then noticed that my directories were still outside of the main
directory. I looked in them and saw that they were empty. So I did an
svn rm on one of the directories (src). It didn't seem to remove it so I
ignored it.

Then I did an svn commit and it seemed to do the commit but I got this
error at the end:

svn: Commit failed (details follow):
svn: Out of date: '/main/src' in transaction 'j'
svn: Your commit message was left in a temporary file:
svn:    '/home/jlm/code/gtkbonus/svn-commit.tmp'

Now, if I  check out a new working copy of the repository, all of the
files are in /main. However the log does not show my comment for that
revision. The last comment is for the previous revision where I added
one file.

Also, svn log shows all actions from all versions being relative to
/main, even though that should have been version 19. On top of that, I
did an svnadmin dump -r 0:17, and when I loaded that into a new
repository, it still said /main at the beginning of all files.

So, am I SOL? It seems the best I can do is grab what I think are all of
my files, delete and recreate the repository and load them in again,
loosing history.

I'm running svn 0.37 on Gentoo Linux with kernel version 2.4.23. I am
just doing local file:/// stuff and nothing with apache and all that.

Thanks.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Corrupt repository, or just incorrect usage.

Posted by jlm <js...@earthlink.net>.
Ok, that might explain the svn commit failure shown below, however I
still feel that the repository is not quite right.

Only yesterday did I move all of these files into /main. I have been
running svn for a while, and had gotten up to version 17 or 18. Now, if
I checkout a working copy of the repository at version 2, I should not
see /main, correct? So, for example:

~/code/gtkbonus_temp 26> svn checkout -r 2 \
file:///usr/subversion/gtkbonus .

A  main
A  main/test
A  main/test/angles3d_test.cpp
A  main/test/scrollbar_test.cpp
A  main/test/trough_test.cpp
A  main/test/gradient_test_old.cpp
A  main/test/gradient_dialog_test.cpp
A  main/test/gradient_test.cpp
A  main/test/color_dialog_test.cpp
A  main/test/palette_test.cpp
.
.
.

ls
main/

I know that I didn't have any directory called main in version 2,
however there it is.

Just to check I did svn update -r 2 and I still see main, with all
(supposedly) of my files therein. I expect to see all of my files right
there, at the root of the repository, because I didn't add the main
directory until revision 19.

Thanks again.

On Sat, 2004-03-20 at 08:03, Erik Huelsmann wrote:
> Hi!
> 
> Well, I think you may not be in a state as serious as you think. From what
> you describe, I think you suffer from what is described in the Subversion Book
> section "Limitations of mixed revisions"
> (http://svnbook.red-bean.com/book/book.html#svn-ch-2-sect-3.4): you cannot commit directory structure changes to
> directories which are not the HEAD revision.
> 
> HTH,
> 
> Erik.
> 
> > I think I may have corrupted my repository, and would like to get it
> > fixed. Here is the situation.
> > 
> > I wanted to make a branch. My project files were all in the root of the
> > repository, so I made a directory called main (svn mkdir), and then did
> > a svn mv on all of the files into the directory.
> > 
> > I then noticed that my directories were still outside of the main
> > directory. I looked in them and saw that they were empty. So I did an
> > svn rm on one of the directories (src). It didn't seem to remove it so I
> > ignored it.
> > 
> > Then I did an svn commit and it seemed to do the commit but I got this
> > error at the end:
> > 
> > svn: Commit failed (details follow):
> > svn: Out of date: '/main/src' in transaction 'j'
> > svn: Your commit message was left in a temporary file:
> > svn:    '/home/jlm/code/gtkbonus/svn-commit.tmp'


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Corrupt repository, or just incorrect usage.

Posted by Erik Huelsmann <e....@gmx.net>.
Hi!

Well, I think you may not be in a state as serious as you think. From what
you describe, I think you suffer from what is described in the Subversion Book
section "Limitations of mixed revisions"
(http://svnbook.red-bean.com/book/book.html#svn-ch-2-sect-3.4): you cannot commit directory structure changes to
directories which are not the HEAD revision.

HTH,

Erik.

> I think I may have corrupted my repository, and would like to get it
> fixed. Here is the situation.
> 
> I wanted to make a branch. My project files were all in the root of the
> repository, so I made a directory called main (svn mkdir), and then did
> a svn mv on all of the files into the directory.
> 
> I then noticed that my directories were still outside of the main
> directory. I looked in them and saw that they were empty. So I did an
> svn rm on one of the directories (src). It didn't seem to remove it so I
> ignored it.
> 
> Then I did an svn commit and it seemed to do the commit but I got this
> error at the end:
> 
> svn: Commit failed (details follow):
> svn: Out of date: '/main/src' in transaction 'j'
> svn: Your commit message was left in a temporary file:
> svn:    '/home/jlm/code/gtkbonus/svn-commit.tmp'

-- 
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org