0

I keep a SVN repository for all my personal programming work using a hosted solution online. I am the sole user of system, it is used just a backup.

Now when I try to commit my changes I am being told the project needs to update.

From what I understand, an update is when the repository contains changes that my local copy does not have. But as the sole dev, I don't know how this is possible. There cannot be any changes on the server that I did not make.

I have tried searching around to find if updating will just resync, or potentially delete my most recent changes. I have been without internet for a week, so my local copies have many changes I do not want to lose.

This has happened many times before and always ends up with a lot of faffing around and in some cases just creating a new repository, but this seems extreme. This time, I have about 5 projects all saying the same, so it must be something I am doing wrongly or misunderstanding.

I would like to know why this happens and the correct way to handle it.

Martin
  • 837
  • 1
  • 10
  • 18
  • Check out the revision you have locally in another folder from server. Checkout current from server. Diff. Are you using more than one computer? PS - an update shouldn't wipe out your local files (it should merge) but to be safe, don't update till you diff. –  Jul 12 '13 at 13:14
  • May it be that you committed only parts of your project, e.g. the folder "src/main/java/something/xyz" but did not update the parent folder? This leads to this effect for me sometimes. – Dominik Sandjaja Jul 12 '13 at 13:15
  • @ebyrob I only use one machine – Martin Jul 13 '13 at 13:36
  • @DaDaDom I do not think, as I either click on the project folder and select comment, or I comment a general folder containing a few projects. – Martin Jul 13 '13 at 13:37
  • @ebyrob IT is the *shouldn't* that worries me. But thanks for the advice am checking that now. I really need to read up on this SVN marlarky, but there is always something more pressing and it never floats to the top of the todo list. – Martin Jul 13 '13 at 13:39

1 Answers1

0

Sometimes SVN just need to maintain its meta information updates, but this doesn't mean that your files will be changed or deleted.

If you are not confident about this required update, do the following:

  1. Copy your local repository to another folder;
  2. Perform a SVN Update on it and check if the files will be changed.

I see no reason to worry about, since you are "the sole developer" from your repository.

Leonel Sanches da Silva
  • 6,972
  • 9
  • 46
  • 66
  • Good to know about the meta issue. >I see no reason to worry about The worry is / was, I lose a weeks worth of changes :) I guess the copy folder, update, move back and commit is the best way. – Martin Jul 13 '13 at 13:44
  • Well, it's quite the same of my answer. If this is more safe for you, that's ok ;) – Leonel Sanches da Silva Jul 13 '13 at 16:45
  • You appear to be spot on. I couldn't spot any changes in the files. Thanks – Martin Jul 17 '13 at 02:00