I don't think that it is possible to get "ct find" or "ct desc" to print a
fully qualified version path.
What you could try instead is (1) taking the object id of an
element/version, and (2) resolve it to a valid path (depending on the view)
later:
1: ct desc -fmt %On <filename>
2: ct desc -fmt %n oid:<object_id>
Step 2 may not always work (used to be a bug in desc). You can use the
(undocumented) cleartool command "dump" instead, and extract the object's
pathname in the current view.
- Axel.
> -----Ursprüngliche Nachricht-----
> Von: owner-cciug@rational.com [mailto:owner-cciug@rational.comIm
> Auftrag von Darren Yeats
> Gesendet am: Mittwoch, 20. September 2000 16:12
> An: cciug@rational.com
> Betreff: [cciug] ct find - how do I force fully qualified paths?
>
>
> Hi,
> I am trying to use "ct find" to get fully qualified paths.
>
> -version gives version extended pathnames e.g.
>
> /vobs/bar/dir/foo.c@@/main/4
> /vobs/bar/dir/fred.c@@/main/4
>
> What I want are paths like this...
>
> /vobs/bar@@/main/1/dir@@/main/3/foo.c@@/main/4
>
> *whether the object is visible in the current view or not*. These
> paths can be
> accessed by all views, even views selecting /main/0 on the root
> directory. We
> need this for a script which is manipulating labels (we want to
> avoid problems
> with config specs that select these labels).
>
> When you run -all -version, and one of the results is not
> selected at all by the
> current view, the path given is like this.
>
> Again, what I need is for *all* the results to be returned like
> this, even those
> which are selected by the current view, and even if "-all" is not
> specified.
>
> Thanks in advance,
> Darren
>
> --
> Darren@Yeats.co.uk +44-7958-679115
> Software Configuration Management
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:26:42 EDT