What would be the best way to extract code from clearcase for a give label. Planning to do this in perl first then in GUI based model.
Whenever release is made, release label is applied on all files. Once tested, This script should copy/extract all the files from clearcase and upload it to another server.
Environment: Windows.
any insight would be of great help.
Create a snapshot/dynamic view with config spec, element * Label. Then use windows command to copy.
tar cf tarfile $(ct find -a -ver 'lbtype(Label)' -print) , need to find similar one for windows env. No Cygwin.
If the label is applied on all elements, then create a view with the right config spec is the easiest way to access the code referenced by that label
element * mylabel
Related
I am writing a documentation for a project that involves multiple developers. We use Subversion (SVN) to work on our code base.
I wrote the first draft of the documentation document using HelpNDoc, which I like for the nice tree-view and easy of use; the problem is that there is a single file, so I don't know how to use SVN to allow other developers to contribute to the documentation and update it.
Do you know if it's possible? If not, can you advice a nice software, easy to use, with a tree-view of the documentation that can be used with SVN or makes it possible for multiple users to update it? We use Windows.
HelpNDoc projects are binary files based on the SQLite open source database engine. The advantage is that the whole documentation stored in a single file so it can easily be copied, moved, shared, backed-up...
However one drawback is that it has to be checked-in as binary content in any version control system including Subversion: diff and merge are not possible on those files.
One possible solution would be to use external documents in HelpNDoc's library: each user works on her own document (which can be a Word document, and HTML web-page...) and a master HelpNDoc project is created to include those documents at generation time. See "Include a file at generation time" in the following step by step guide: How to add an item to the library
Amount of files doesn't matter, real format (text/* or binary) - does. If SVN|any VCS can merge two HelpNDoc files with diverged history (just try it by hand), you'll be happy
I once used Helpinator for software documentation, it's pretty close to HelpnDoc but it's storage format is more suitable for version control.
Im trying to run several different scripts on my Mac for data stored in different paths. So I put all said scripts into a folder. In order for a script to work, I have to be cd'd to a specific folder required for said script. I use the scripts to get different types of output (ex: Image volumes, MRI info, etc..).
I was wondering if there was a way to store all my scripts in one directory and assign a shortcut to it. That way, I can cd to my folder, and only type something like $ScriptsFolder/Script_1 to have it. Ive seen this done in the FSL software package, where typing $FSLDIR/data/standard would give you the items in that folder.
UPDATE:
Im using Script=/Users/ray/Documents/Script which works until I close down my terminal to start a new one. Any way to make the setup permanent?
EDITED
Found this helpful in the end.
http://www.techradar.com/how-to/computing/apple/terminal-101-creating-aliases-for-commands-1305638
I used it to create a shortcut to my scripts which are all placed in a folder for easy referencing.
Is there any tool in windows to compare two folder and to generate difference report by using "Tortoise SVN". can any one help me to do this.
Thank in advance..
TortoiseSVN is the wrong tool for the job if you have two arbitrary folders and need to compare them. It's like using a wrench to pound nails - it works by using a particular feature, but it's not going to get you the results you want.
I use WinMerge to compare both files and folders. Whether it will produce the report output you're looking for I can't say, as you haven't defined what this "report" should show (or now).
While alroc is totally right (but his selection of diff-tool is a question, next question), TortoiseSVN (surprise !!!) can be used as tool for diffing folder (it's perversion, yes, but it's possible)
Create new repo
Import into repo Folder I
Import into repo Folder II
svn diff ... > report two folders in repo and get difference-report
Delete repo
Is there a command-line utility to create folders/sub-folders inside a workarea in Teamsite?
I went through a list, and all it seems to contain were those concerning creation/modification of groups/branches and related permissions.
the folders and files are standard system files and folders, so you use standard command line tools (CLTs) to do what you want.
for example in windows, you'd use DOS command 'mkdir ' to create a folder.
Yes, there should be a command by which we can create files and folders inside a Workarea.
Since, to some extent Branches, Workareas etc are customizable and can be created through command-line tool (CLT) instead of TeamSite UI. Even through command line tool we can easily fetch number of branches, workareas etc present in a particular branch. You can refer to "WebContentManagement_CommandLineTools_en.pdf" for the same and check inside workarea section the list of commands.
Please vote the solution if its helpful. Thanks!
We use Clearcase at my work and I have several snapshot views setup (on Windows XP). The views themselves seem to work great, however whenever I try to compare any versions of any elements from my snapshot view, I have problems with my diff tool (currently Beyond Compare). Specifically, if I'm comparing with previous, I see the current version great, but the previous version never shows up in the diff tool.
I've looked into the problem a bit and looking at the command line that is getting passed into the diff tool, CC is passing in a bad path to the file. The path to the file that is not working looks something like this:
//server/path/to/viewstorage.vws/....
The problem appears to be in the //server used to access the SMB share where the file is found.
Where is CC getting this bad path from? Is this something specific to how my snapshot view is setup (this worked for a long time and still works on some of my co-worker's machines)? Is there any way to change this path to the typical \\server that Windows expects?
Update:
Ok, so my original question was written from home, and wasn't entirely accurate. The actual path is more like this:
//server/path/to/vobstorage.vbs\....
To answer #koslorr question, the global path for the view is correct (the view is actually stored on a public share on my machine), however doing the similar command for the vob (cleartool lsvob -l /my-working-vob) does show that the global path for the VOB is incorrect. Can this be updated in a similar way to the view tag? Is this something my CC admin is going to need to do?
Check your view Global Path with
cleartool lsview -l <VIEW TAG>
Is the Global Path in the correct \server.... form?
If it is not, then you can use
cleartool mktag -view <VIEW TAG> -replace...
to change it to the correct form.
cleartool man mktag should tell you more in details.
What a cleartool diff -pred myFile gives you when executed in your snapshot view path?
cd c:\path\to\my\snapshotView\myVob\path_to_myFile
cleartool diff -pred myFile
If the global path is incorrect, it can be because of:
an incorrect mktag (cleartool man mktag), as kolslorr mentions in his answer. Don't forget to specify the host of the view storage as well as its global path (see "Renaming a ClearCase VOB or View")
an incorrect region (see your ClearCase control panel): the view might be correctly defined in another region