Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why Tortoise SVN does not show Commit option on some folders on local machine?

This might be a silly question. I have started to use Tortoise SVN since last month. I checked out a few folders from repository and they are fine. When I right click on them, I can see commit, check out and other options too...

But, I wanted to push something to the repo. I could not see a commit option, so I played with it, googled and did an import. The folder was pushed into the repo. Now, for all folders I checked out from repo, I can see a red exclamation or right tick mark. But this one which I pushed has no indication like that. Also, there is no option called commit when I right click on it. Why is it? Am I doing something wrong?

like image 650
pnv Avatar asked Feb 11 '23 19:02

pnv


1 Answers

"Import" does not actually create a working copy. "Import" only adds the files in the specified directory, to a location in the repository. It does NOT convert the specified directory to a working copy or associate it in any way with the repository server.

Right now, your best option is to svn checkout the imported directory to a new location and move over any modified files from the directory you did the import from.

To avoid the problem in the future, instead of doing "import", try creating a new directory on the repository, then making a svn checkout of that empty directory to get a working copy, then svn add any files you want into that empty directory, then svn commit them.

like image 153
Ben Avatar answered Apr 08 '23 12:04

Ben