xTool

xTool is an extended tool for open source Version Control Tool like: git and svn.

Among the Version Control Tools, ClearCase is the heavyweight one, which has plenty of features and make version control very flexible and configurable.

xTool borrows some concepts from ClearCase, try to make QUICK more powerful.

Sub-Commands

Extended features are implemented with sub-commands of xTool command: xt.

Run below command to see what sub-commands are available now:

$> xt -h

lsview

Sub-command: lsview lists all available views currently in the system. You can specify filter of a particular user, or a particular project. See syntax below:

$> xt lsview -h
usage: xt lsview [-h] [-u USER] [-p PROJECT]

optional arguments:
  -h, --help            show this help message and exit
  -u USER, --user USER  List only user's views
  -p PROJECT, --project PROJECT
                        List only views of project

setview

Sub-command: setview switchs to another View, even someone else’s View. This means a user can explore someone else’s working data, only if he knows the full view name. The full view names can be listed by command: xt lsview.

$> xt setview -h
usage: xt setview [-h] viewtag

positional arguments:
  viewtag     Viewtag to switch

optional arguments:
  -h, --help  show this help message and exit

Tip

After switchs View, the linux PROMPT will change color to red, to reminder user that he is in somebody else’s View.

pwv

Sub-command: pwv prints the View information, telling user the current View which user is working in, and the original View which user come from.

$> xt pwv -h
usage: xt pwv [-h]

optional arguments:
  -h, --help  show this help message and exit