IPnom Home • Manuals • ClearCase

 Rational ClearCase Commands Reference

ClearCase Stuff:ClearCase LinksClearCase BooksClearCase Commands ReferenceClearCase ForumsClearCase News
Keyword Live Search (10 results max):
 Type in part of a ClearCase command in the search box.
 
Commands Index:
  intro
  annotate
  apropos
  catcr
  catcs
  cc.icon
  cc.magic
  cd
  chactivity
  chbl
  checkin
  checkout
  checkvob
  chevent
  chflevel
  chfolder
  chmaster
  chpool
  chproject
  chstream
  chtype
  chview
  clearaudit
  clearbug
  cleardescribe
  cleardiffbl
  cleardiff
  clearexport_ccase
  clearexport_cvs
  clearexport_pvcs
  clearexport_rcs
  clearexport_sccs
  clearexport_ssafe
  clearfsimport
  cleargetlog
  clearhistory
  clearimport
  clearjoinproj
  clearlicense
  clearmake
  clearmake.options
  clearmrgman
  clearprojexp
  clearprompt
  cleartool
  clearviewupdate
  clearvobadmin
  comments
  config_ccase
  config_spec
  cptype
  credmap
  creds
  deliver
  describe
  diffbl
  diffcr
  diff
  dospace
  edcs
  endview
  env_ccase
  events_ccase
  export_mvfs
  exports_ccase
  file
  find
  findmerge
  fmt_ccase
  getcache
  get
  getlog
  help
  hostinfo
  init_ccase
  ln
  lock
  lsactivity
  lsbl
  lscheckout
  lsclients
  lscomp
  lsdo
  lsfolder
  lshistory
  ls
  lslock
  lsmaster
  lspool
  lsprivate
  lsproject
  lsregion
  lsreplica
  lssite
  lsstgloc
  lsstream
  lstype
  lsview
  lsvob
  lsvtree
  makefile_aix
  makefile_ccase
  makefile_gnu
  makefile_pmake
  makefile_smake
  makefile_sun
  man
  merge
  mkactivity
  mkattr
  mkattype
  mkbl
  mkbranch
  mkbrtype
  mkcomp
  mkdir
  mkelem
  mkeltype
  mkfolder
  mkhlink
  mkhltype
  mklabel
  mklbtype
  mkpool
  mkproject
  mkregion
  mkstgloc
  mkstream
  mktag
  mktrigger
  mktrtype
  mkview
  mkvob
  mount_ccase
  mount
  msdostext_mode
  mvfslog
  mvfsstorage
  mvfstime
  mvfsversion
  mv
  omake
  pathnames_ccase
  permissions
  profile_ccase
  promote_server
  protect
  protectvob
  pwd
  pwv
  query_language
  quit
  rebase
  recoverview
  reformatview
  reformatvob
  register
  relocate
  rename
  reqmaster
  reserve
  rgy_backup
  rgy_check
  rgy_passwd
  rgy_switchover
  rmactivity
  rmattr
  rmbl
  rmbranch
  rmcomp
  rmdo
  rmelem
  rmfolder
  rmhlink
  rmlabel
  rmmerge
  rmname
  rmpool
  rmproject
  rmregion
  rmstgloc
  rmstream
  rmtag
  rmtrigger
  rmtype
  rmver
  rmview
  rmvob
  schedule
  schemes
  scrubber
  setactivity
  setcache
  setcs
  setplevel
  setsite
  setview
  shell
  snapshot.conf
  softbench_ccase
  space
  startview
  type_manager
  umount
  uncheckout
  unlock
  unregister
  unreserve
  update
  version_selector
  view_scrubber
  vob_restore
  vob_scrubber
  vob_sidwalk
  vob_snapshot
  vob_snapshot_setup
  wildcards_ccase
  winkin
  xclearcase
  xcleardiff
  xmldiffmrg

pwv

Prints the working view

APPLICABILITY

ProductCommand type
ClearCasecleartool subcommand
ClearCase LTcleartool subcommand

Platform
UNIX
Windows

SYNOPSIS

  • ClearCase:
    pwv [ –s·hort ] [ –wdv·iew | –set·view | –root]

  • ClearCase LT:
    pwv [ –s·hort ] [ –wdv·iew | –root]

DESCRIPTION

The pwv command lists the view tag of your current view context, or ** NONE ** if there is none. There are two kinds of view contexts, as follows:

  • The working directory view context, which any view may have
  • The set view context, which only a UNIX dynamic view may have

Note: This command does not require a product license.

Dynamic Views

You can establish or change your dynamic view context in three ways:

  • Using the setview command (UNIX)
  • Changing to a Windows view drive
  • Changing your working directory to a view-extended pathname (see pathnames_ccase).

On UNIX, if you use setview and change your working directory to a view-extended pathname, you have two view contexts: your working directory view, which is used to process simple file names and relative pathnames; and your set view, which is used to process full pathnames (those that begin with a slash). On Windows, there is no notion of a set view context.

Snapshot Views

You can establish or change your snapshot view context when you change to a snapshot view directory. There is no notion of a set view context for a snapshot view.

RESTRICTIONS

None.

OPTIONS AND ARGUMENTS

Listing Format

Default
The annotation Working directory view: or Set view: precedes the view tag.

–s·hort
Omits the annotation string. Specifying –short invokes –wdview also, unless you use –setview.

Working Directory View vs. Set View

Default
Lists both your working directory view and your set view, unless you specify –short.

–wdv·iew
Lists your working directory view only.

–set·view
Lists your set view only. There is no notion of a set snapshot view, so when you work in a snapshot view, the set view is always ** NONE **.

Miscellaneous

–root
Returns the root directory path of the current working view. This root is the portion of an element's absolute path that precedes the VOB tag.

Note: On UNIX, use the root directory path as the prefix for element paths in build scripts originally developed to work in a dynamic view that you now want to use in a snapshot view.

If you start a dynamic view (see startview) and then change tothe view (rather than using setview ), this option returns the extended view path. This option returns nothing when issued from a set UNIX dynamic view (see setview), from a Windows dynamic view path, or from a Windows snapshot view path that has been mapped to a drive (using the subst command) that is your current drive.

EXAMPLES

The UNIX examples in this section are written for use in csh. If you use another shell, you may need to use different quoting and escaping conventions.

The Windows examples that include wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.

In cleartool single-command mode, cmd-context represents the UNIX shell or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt.

Note: In the UNIX examples that follow, arguments and output that show multicomponent VOB tags are not applicable to ClearCase LT, which recognizes only single-component VOB tags. In this manual, a multicomponent VOB tag is by convention a two-component VOB tag of the form /vobs/vob-tag-leaf—for example, /vobs/src. A single-component VOB tag consists of a leaf only—for example, /src. In all other respects, the examples are valid for ClearCase LT.

  • On a UNIX system, list the current set view and working directory view. In this case, they are the same.

    cmd-context  pwv 
    Working directory view: jackson_vu
    Set view: jackson_vu

  • On a Windows system, display the current view.

     cmd-context  pwv 
    Working directory view: jackson_vu
    Set view: jackson_vu

  • On a UNIX system, list the working directory view only.

    cmd-context  pwv –wdview 
    Working directory view: jackson_vu

  • On a UNIX system, list the current view after changing the working directory view, but before setting a view.

    cd /view/jackson_old/usr/hw/src 

    cmd-context  pwv 
    Working directory view: jackson_old
    Set view: ** NONE **

  • (ClearCase) On a UNIX system, list the current view after setting a view and changing the working directory view.

    cmd-context  setview jackson_vu
    cd /view/jackson_old/usr/hw/src 

    cmd-context  pwv 
    Working directory view: jackson_old
    Set view: jackson_vu

  • On a UNIX system, set a dynamic view, change to a VOB directory, and then use pwv –root. Notice that no value is returned.

    cmd-context setview bert_dynview_v5
     % cd /vobs/doc

     
    cmd-context pwv –root
     % 

  • On a UNIX system, change to a snapshot view directory and get the root of the working view directory path.

     % cd /usr/ssview/bert_v5/vobs/doc
    cmd-context  pwv –root
    /usr/ssview/bert_v5

  • List the current view after changing to a version-extended namespace directory. Use the short format to list the view name only.

    cd src@@ 
    cmd-context  pwv –short 
    jackson_vu@@

SPONSORED LINKS



 

ClearCase Links • ClearCase Books • ClearCase Commands Reference • ClearCase Forums • ClearCase News