开发者

How to detect modified files that were NOT checked in?

I am seeing noob developers forget to check in modified files into a SVN repository. They check in only some files and leave out others!! Clearcase made it easy to see all the modified repository files. What is the equivalent command(s) in SVN which will let a noob developer see all the modified files (so all files can be checked in开发者_开发百科) ?

EDIT: Does anyone know how to do "svn -q status" in "Tortoise Subversion" which most developers use?


Per the relevant chapter in the SVN Manual, svn status shows you all the file and tree changes you have made.

If you have a lot of generated directories and files, that output can get a little busy, so I tend to use svn status -q which suppresses inclusion of ignored and non-versioned files.

It is generally good practice to do your checkins at the root of your working copy as a batch (to aggregate your changes in a single revision number). From the root of the working copy, svn ci will recursively select all of the changed files for commit. That should help avoid forgetting files.


svn status let you see files that are modified or without status, like new file you forgot to put under version control


(Responding to the Edit)

You can set Tortoise SVN to add little icon overlays to all folders/files. The red circle with an exclamation point means the file (or some file inside the folder) has uncommited changes. Right-click anywhere in a Windows Explorer window, then go to TortoiseSVN > Settings > Icon Overlays.

Personally, I don't use this much because I do most of my SVN committing/updating through Eclipse (which has similar overlays, as I imagine many other IDEs do).


In response to how to do the equivalent of "svn status -q" in TortoiseSVN:

When you do an SVN Commit at the root of your working copy, it will bring up a window that allows you to enter a commit message. Below the message area, there is a "Changes made" list, which by default will show all version-controlled files that have been modified, as well as those files which are not under version control. If you uncheck "Show unversioned files", it will only show the modified version-controlled files, just as the -q option does for "svn status".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜