{ "info": { "author": "Borja Penuelas", "author_email": "bmpenuelas@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Programming Language :: Python :: 3" ], "description": "# gfcc\n## git flavoured ClearCase\n\n*gfcc* provides a layer of automation on top of ClearCase. The goal is twofold: speed-up working with cc, and provide additional checks for a more robust workflow.\n\nSome companies keep (typically older) projects in ClearCase, this project should also make working with them a bit more efficient for git users. The two are fundamentally different and therefore technically they won't be able to behave exactly the same way, so feel free to use the ones that are useful for you and tweak, request or contribute other commands.\n\n
\n
\n\n#### Install:\n* Easiest *(requires internet connection)*:\n\n `pip3 install gfcc`\n\n* Manual:\n\n Download or clone the project, and run `pip3 install --user -e .` inside the `/gfcc` directory, at the same level as `setup.py` (not inside /gfcc/gfcc).\n\nNow you can type `gfcc` add access all the commands.\n\n(In more restrictive environments you might need to run it as `python3 -m gfcc` and create an alias like `alias gfcc=\"python3 -m gfcc\"` if using the *bash* shell or `alias gfcc 'python3 -m gfcc'` if using *csh* or *tcsh* )\n\n
\n
\n\n### :information_source: git-like commands:\nThese commands provide as-close-as-possible syntax and functionality to the most used ones in git.\n\n\n:pushpin: **`gfcc status`**\n\n| git equivalent | description | clearcase actions |\n| --- | --- | --- |\n| `git status` | List all new or modified files. | `cleartool ls -rec -view_only` to get new files. `cleartool lsco -cview -a -s` to get all the checked out files, then find those which have been actually modified with `cleartool diff -predecessor`. |\n\nAvailable options:\n\n`-u` `--untracked` Show untracked files.\n* no - Show no untracked files.\n* normal - *(default)* Shows untracked files and directories.\n\n`-v` `--view` Show modifications in the whole view, untracked files will be shown for the cwd and subdirs.\n\n`-co` `--checked-out` Show also files that are checked-out but don't have modifications.\n\n`[item]` You can provide a directory or file to get the status of that item alone.\n\n
\n
\n\n:pushpin: **`gfcc diff`**\n\n| git equivalent | description | clearcase actions |\n| --- | --- | --- |\n| `git diff` | Show changes. | `cleartool lsco -cview -a -s`, then `cleartool diff -predecessor` and print the differences. |\n\n`-g` `--graphical` Open differences in GUI (if any).\n\n`[item]` You can provide a directory or file to get differences on that item alone.\n\n
\n
\n\n:pushpin: **`gfcc log`**\n\n| git equivalent | description | clearcase actions |\n| --- | --- | --- |\n| `git log` | Show change history. | Wrap `cleartool lshist`, `lshist -graphical` and `xlsvtree`. |\n\n`-l` `--lines` *(optional)* Number of lines of history to print (default 15).\n\n`-r` `--recursive` Apply recursively going into subdirectories.\n\n`-g` `--graphical` Open history in GUI.\n\n`-t` `--tree` Open history in visual tree.\n\n`[item]` You can provide a directory or file to get the history of that item alone.\n\n
\n
\n\n:pushpin: **`gfcc clean`**\n\n| git equivalent | description | clearcase actions |\n| --- | --- | --- |\n| `git clean` | Remove untracked files. | `rm -f`, `-r` for the files directories that are not under version control. |\n\nClean the *current working directory* (recursively). By default it will only remove files ending with *~*, *.keep* or *.contrib*.\n\n`-a` `--clean_all` Remove ALL untracked.\n\n
\n
\n\n### :information_source: ClearCase automation commands:\nThese do not have any git equivalent because they are exclusive to the ClearCase philosophy, they automate repetitive CC tasks or provide additional automated checks:\n\n\n:pushpin: **`gfcc ccheckout`**\n\n| description | clearcase actions |\n| --- | --- |\n| Checkout in the ClearCase sense. | `cleartool co -unr -nc` per element, recursively if selected. |\n\nIf no parameters are specified, *recursive* from *cwd* will be performed.\n\n`-r` `--recursive` If a directory is provided (defaults to *cwd*), apply to all files and subdirectories recursively.\n\n`-e` `--edit` Open checked-out file in the editor defined by `$EDITOR` environment variable.\n\n`[item]` File/dir to ccheckout.\n\n
\n
\n\n:pushpin: **`gfcc ccheckin`**\n\n| description | clearcase actions |\n| --- | --- |\n| Checkin in the ClearCase sense. If the file does not exist in ClearCase it will checkout the directory that contains it, create the element, check it in and check in the directory. | `cleartool ci -c` per element, recursively if selected. If the file is not in ClearCase yet, `cleartool mkelem` and checkout/checkin for the directory that contains it too. |\n\nIf no parameters are specified, *recursive* from *cwd* will be performed.\n\n`-m` `--message` Comment or description of the checkin *(made mandatory)*.\n\n`-r` `--recursive` If a directory is provided (defaults to *cwd*), apply to all files and subdirectories recursively.\n\n`-u` `--untracked` In `--recursive` mode, also check-in new files. It will ignore files ending with *~*, *.keep* or *.contrib*.\n\n`-i` `--identical` Checkin even if files are identical.\n\n`[item]` File/dir to ccheckin.\n\n
\n
\n\n:pushpin: **`gfcc uncheckout`**\n\n| description | clearcase actions |\n| --- | --- |\n| Uncheckout in the ClearCase sense. | `cleartool unco` `-keep` or `-rm` per element, recursively if selected. |\n\nIf no parameters are specified, *recursive* from *cwd* will be performed.\n\n`-r` `--recursive` Apply to all subdirectories and files recursively.\n\n`-k` `--keep` Keep private copy *(defaults to False)*.\n\n`[item]` File/dir to uncheckout.\n\n
\n
\n\n:pushpin: **`gfcc find`**\n\n| description | clearcase actions |\n| --- | --- |\n| Uncheckout in the ClearCase sense. | `cleartool unco` `-keep` or `-rm` per element, recursively if selected. |\n\nIf no parameters are specified, *recursive* from *cwd* will be performed.\n\n`-l` `--latest` Find files selected by rule /LATEST.\n\n`-nl` `--not-latest` Find files for which a newer version exists.\n\n`-v` `--view` Perform the search on another view.\n\n`-d` `--directory` Perform the search in the provided directory.\n\n
\n
\n\n:pushpin: **`gfcc diffcs`**\n\n| description | clearcase actions |\n| --- | --- |\n| Find which files are selected by one cs file and not the other, and also files selected in both but with different versions. Also display if you have local changes. | `cleartool catcs` to save the current cs, `cleartool ls -r` to get the version and rule of each file, `cleartool setcs` on the cs file to compare, get versions and rules of the second cs file; and compare the results. |\n\nIf no parameters are provided, it will diff your current cs against your last saved user cs file. Otherwise you can diff against another view's current cs, another file, or between two files.\n\n`-f` `--files` Diff the actual CS files, instead of the list of files and versions selected by them.\n\n`-d` `--directory` Perform the file comparison in the provided directory, instead of the *current working directory*.\n\n`-b` `--block` Block name (to diff against a block configspec).\n\n`-v` `--view` Provide a view name to compare against it's current cs instead of a cs file.\n\n`-g` `--gen_rules` Generate cs rules so that you get the same versions as others.\n\n`[csfile(s)]` Config-spec file to diff against current one / two cs files to be diff'ed (not required if `--view`).\n\n
\n
\n\n:pushpin: **`gfcc savecs`**\n\n| description | clearcase actions |\n| --- | --- |\n| Save your current configspec in clearcase. | If your block directory can be automatically found, it will be checked-in under `blockname/cs`, otherwise you can always provide the full destination save path.|\n\nConfigspec files location:\n* `$PROJVOB/src/blockname*/cs*` *Shared configspec files* (i.e to be used per team, per release...)\n* `$PROJVOB/src/blockname*/cs/user*` *Default* save location for cs files if a *shared cs* file name is not provided. *The name of the cs file will be the same as the name of your view.*\n\n`-b` `--block` Specify block (needed if it can not be automatically identified because you are not working inside the block file-tree, or want to save the cs in a different block). Destination path will be *src/`blockname`/cs* .\n\n`-m` `--message` Comment or description (mandatory for shared cs files).\n\n`-p` `--absolute-path` Absolute path where the cs file will be saved (ignore blockname/cs structure and file name).\n\n`-f` `--force` By default LATEST is not allowed in your CS, and identical versions are not checked in. Use this to override that behavior.\n\n`[cs-file-name]` Name of a shared configspec to save to.\n\n\n
\n
\n\n:pushpin: **`gfcc setcs`**\n\n| description | clearcase actions |\n| --- | --- |\n| Apply the provided cs in your view. | Identify the source for the cs content and apply it using `cleartool setcs`. |\n\n`-b` `--block` Specify block (needed if it can not be automatically identified because you are not working inside the block file-tree, or want to take the cs from a different block). Source path will be *src/`blockname`/cs* .\n\n`-v` `--view` Copy the current CS in another view to this one.\n\n`-k` `--backup` Save current CS in a backup file before applying the new CS.\n\n`[cs-file]` Name or path of the configspec to apply.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bmpenuelas/gfcc", "keywords": "git clearcase cleartool", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "gfcc", "package_url": "https://pypi.org/project/gfcc/", "platform": "", "project_url": "https://pypi.org/project/gfcc/", "project_urls": { "Homepage": "https://github.com/bmpenuelas/gfcc" }, "release_url": "https://pypi.org/project/gfcc/0.5/", "requires_dist": null, "requires_python": "", "summary": "A layer of automation for ClearCase with a touch of git flavour", "version": "0.5" }, "last_serial": 5630320, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "612ea21e076f717547f8aa33816786c1", "sha256": "2b29a4512c1133d34159949ab5079cbae1c277058007634eda7c09d3468b3af8" }, "downloads": -1, "filename": "gfcc-0.2.tar.gz", "has_sig": false, "md5_digest": "612ea21e076f717547f8aa33816786c1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14503, "upload_time": "2019-07-30T18:49:45", "url": "https://files.pythonhosted.org/packages/f0/74/d4dd1b713859a8f68af8fc49ee70e00f264a4d4f64f23815e4fd947966c6/gfcc-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "5ba28e17597cbde9a74bb921e3470687", "sha256": "2410edcfb4e0cb50fcd37c4cb92eeade278fd1aa21570e65639cc4bc5525b213" }, "downloads": -1, "filename": "gfcc-0.3.tar.gz", "has_sig": false, "md5_digest": "5ba28e17597cbde9a74bb921e3470687", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14506, "upload_time": "2019-07-30T18:53:41", "url": "https://files.pythonhosted.org/packages/c1/cd/73af27898d1f6c8c05bee68af917992809b7c829666302f09d4adbb5e5dc/gfcc-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "0d89ec83f4130f6054061289826d8a81", "sha256": "4515dddf612e958d8a97bc09bdebfefcfe829d2f0e474e851417c9282ecea2a2" }, "downloads": -1, "filename": "gfcc-0.4.tar.gz", "has_sig": false, "md5_digest": "0d89ec83f4130f6054061289826d8a81", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15320, "upload_time": "2019-08-01T21:59:14", "url": "https://files.pythonhosted.org/packages/61/23/29157bda54aa8ef9d4f6c4b2c9582e09358f7caf4917d130407b75750b3e/gfcc-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "c1514c7d0cbb0f5c401ca41671731ddb", "sha256": "7846571557b672986dd0443c689fe805806d3394047352af7243e63cb77cbe19" }, "downloads": -1, "filename": "gfcc-0.5.tar.gz", "has_sig": false, "md5_digest": "c1514c7d0cbb0f5c401ca41671731ddb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15857, "upload_time": "2019-08-04T10:40:13", "url": "https://files.pythonhosted.org/packages/3b/3f/72869fdf6590400ee187baccafdcba186ed282ab3293e87dcc57de546b20/gfcc-0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c1514c7d0cbb0f5c401ca41671731ddb", "sha256": "7846571557b672986dd0443c689fe805806d3394047352af7243e63cb77cbe19" }, "downloads": -1, "filename": "gfcc-0.5.tar.gz", "has_sig": false, "md5_digest": "c1514c7d0cbb0f5c401ca41671731ddb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15857, "upload_time": "2019-08-04T10:40:13", "url": "https://files.pythonhosted.org/packages/3b/3f/72869fdf6590400ee187baccafdcba186ed282ab3293e87dcc57de546b20/gfcc-0.5.tar.gz" } ] }