Personal tools
     DOCUMENTATION

Conary:conary showcs

From rPath Wiki

Jump to: navigation, search
conary showcs / conary scs
conary showcs <changeset_file>
Example> conary showcs example.ccs


Use conary showcs to examine changeset file contents. This information includes:

  • An indicator to identify if it is an absolute changeset
  • Trove revision in the changeset, plus the starting revision for a relative changeset
  • (For relative changesets) the trove(s) present in the changeset and the action that would be taken for that trove should the changeset be applied

This example is typical output from from an absolute changeset conary showcs:

#> conary showcs imagepack-1.0.ccs
imagepack=1.0-1-0.1

In the example, the changeset output is identical to the conary query output for the installed package. When this is the case, the changeset is an absolute changeset.

The output for a relative changeset indicates the actions that would take place if the changeset is applied.

$> conary scs imagepack_update.ccs
Update  imagepack(:data) (1.0-1-1 -> 1.1-1-1)
Image:Bulbgraph.png   The abbreviation scs can be used in place of showcs.

In this example, the changeset contains the differences between revisions 1.0-1-1 and 1.1-1-1 for the imagepack package. The output includes the component-related activity that would take place if this changeset were to be applied; in this case, the data component would be updated from 1.0-1-1 to 1.1-1-1.

Use --ls or --lsl to list the files in the trove(s) contained in the changeset file:

$> conary scs imagepack_update.ccs --lsl
   New drw-r--r--    1 root     root           45 Sep  7 17:12 /usr/share/sample_images/imagepack
   Del -rw-r--r--    1 root     root       987336 Sep  7 14:09 /usr/share/sample_images/sample-001.jpg
   Del -rw-r--r--    1 root     root       265590 Sep  7 14:09 /usr/share/sample_images/sample-002.jpg
   Del -rw-r--r--    1 root     root       211558 Sep  7 14:09 /usr/share/sample_images/sample-003.jpg
   Del -rw-r--r--    1 root     root        48971 Sep  7 14:09 /usr/share/sample_images/sample-004.jpg
   New -rw-r--r--    1 root     root       884673 Sep  7 14:09 /usr/share/sample_images/imagepack/sample_101.png

The output generated by --ls includes the absolute path of the files affected by the changeset. The output using --lsl includes the same files in long list format plus Mod, New, or Del to indicate whether the file has been modified, newly added, or deleted. In the example, the changeset would create a new directory, delete some files, and add a new file.

Image:Bulbgraph.png   Use --lsl on an absolute changeset to see all the files that would be added when applying the changeset.