If I have added/removed/modified a large number of files in my local ClearCase view, how can I be certain that all the files have been added to source control?
相关问题
- How to restrict VOB read access in ClearCase (Wind
- Using Subversion and SourceSafe at the same time?
- subversion merge - “has different repository root
- How do you see the changes for a version in TFS?
- Re-apply a previously reverted commit in SVN
相关文章
- What is the tortoisehg gui equivalent of doing “hg
- How to use Mercurial from Visual Studio 2010?
- SSIS solution on GIT?
- Is it possible to do a “destroy history” in TFS?
- Is there a version control system abstraction for
- Get Android library module version number from ins
- Sprockets::CircularDependencyError application.js
- Why do I see a deleted remote branch?
Your answer is correct, for snapshot views (which you call 'local view' ?)
In a dynamic view, a simple
would suffice.
But that would leave out hijacked files (which are already added to source control, but may have been modified without ClearCase knowing it)
So I would recommend to complete your command with (for Windows):
For Unix:
That would also leave files in checkouts (granted, they also are added to source control, but should be also listed as they must be eventually committed or cancelled).
In Snapshot views:
In Dynamic views:
I use a similar dos command for windows, but I also pipe the results of the clear tool command to findstr to 'ignore' specific patterns (using regex) such as .keep files, dll's, and compiled files and folder locations that I don't want to add to source.
Run the following command from the root folder of your view. If you have multiple top level folders then you'll need to run it once for each folder. Also, I believe this only works for SnapShot views.
Use
cleartool ls -view_only -r
from the your local view VOB directory.To add any files recursively to source control that are only in the local view, see How can I use ClearCase to “add to source control …” recursively?.