Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does svn status show modified when I haven't changed any files?

Tags:

svn

SVN status for some reason shows:

 M      .

That means that the current directory is modified. But why? I had created a directory named .git inside the main svn repo.

I then added git to the ignore list:

svn propedit svn:ignore .

But it still shows:

 M      .
like image 779
Hendrik Avatar asked Mar 13 '13 15:03

Hendrik


2 Answers

When you ignore a folder/file, the parent folder is marked as modified until the next commit, but it does not change the status of its children. I think you should try to commit the parent folder (..) . The modifications on .git will be committed, then ignored.

By the way, how this project is under two versioning systems ?

like image 57
vaugham Avatar answered Nov 12 '22 08:11

vaugham


It can also be the case that you merged trunk or any other and forgot to commit afterwards -

In my case svn diff showed:

--- .   (revision 2723)
+++ .   (working copy)

Property changes on: .
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk/CrowdRoamingV2:r2667-2722

You can see that th now holds the merge info in that branch.

like image 34
hbogert Avatar answered Nov 12 '22 06:11

hbogert