Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get a list of all unversioned files from SVN?

Sometimes you're developing and you decide to commit, forgetting you created a few files on your project. Then a few days down the line your buddy gets your build out of Subversion and complains that some files appear to be missing. You realize, ah crap, I forgot to add those files!

How can I get a list of the files that are not under version control from Subversion so I'm sure I've added everything to the repository?

like image 894
Doug T. Avatar asked Oct 19 '08 05:10

Doug T.


People also ask

Will svn commit Unversioned files?

TortoiseSVN is a graphical tool to manager SVN. When you commit new files (unversioned), normally, you just have to select the "Show unversioned files" option in left bottom corner of the screen.

How do I find previous versions in svn?

Using the latest versions of Subclipse, you can actually view them without using the cmd prompt. On the file, simply right-click => Team => Switch to another branch/tag/revision.

How do I view svn files?

To find information about the history of a file or directory, use the svn log command. svn log will provide you with a record of who made changes to a file or directory, at what revision it changed, the time and date of that revision, and, if it was provided, the log message that accompanied the commit.

Which is the svn command to see the list of changes made in a working copy before committing to the repository?

Use svn status command to get the status of the file in the working copy. It displays whether the working copy is modified, or its been added/deleted, or file is not under revision control, etc. 'M' represents that the item has been modified.


2 Answers

Use the svn status command:

svn status | grep ^? 

Files that are not versioned are indicated with a ? at the start of the line.

If you find that you always have some specific files that should not be added to the repository (for example, generated binaries), you should set up the svn:ignore property on the containing directory so these files won't keep showing up when using svn status.

like image 174
Greg Hewgill Avatar answered Oct 25 '22 01:10

Greg Hewgill


If some files have had ignore added to their status, they won't show up in svn status. You'll need:

svn status --no-ignore 
like image 27
bleater Avatar answered Oct 25 '22 02:10

bleater