mgirod / clearcase-cpan

Automatically exported from code.google.com/p/clearcase-cpan
0 stars 0 forks source link

Wrapper::MGi lsgen indentation error in short mode #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Suitable verstion tree
2.
$ ctx lsgen -s -d 6 development_delivery.pl
development_delivery.pl@@/main/wmg/7
 development_delivery.pl@@/main/wmg/1
  development_delivery.pl@@/main/mg/2
   development_delivery.pl@@/main/mg/1
    development_delivery.pl@@/main/mg-003/11
     development_delivery.pl@@/main/mg-003/1
      development_delivery.pl@@/main/mg-003

development_delivery.pl@@/main/eei_ossrc_swdi/eei_ossrc_swdi_WRNad42257_fix/5
$ ct des -s -ahl Merge
development_delivery.pl@@/main/eei_ossrc_swdi/eei_ossrc_swdi_WRNad42257_fix/5
->
/vobs/swdi/tools/tools/delivery_tools/development_delivery/bin/development_deliv
ery.pl@@/main/mg-003/1

What is the expected output? What do you see instead?

.../eei_ossrc_swdi_WRNad42257_fix/5 is an ancestor of /main/mg-003/1.
It should be indented below it.
Or... it is!
Maybe the problem is the branch line, because of its name ending in digits
(and mistaken for a version)?

Original issue reported on code.google.com by marc.girod on 23 Sep 2008 at 11:11

GoogleCodeExporter commented 9 years ago
Note that in short mode, the branches are skipped, e.g. there is no /main/mg 
line!

I shorten the names in order to protect the indentation from the wrapping:

$ ctx lsgen -s -d 6 dd.pl
dd.pl@@/main/wmg/7
 dd.pl@@/main/wmg/1
  dd.pl@@/main/mg/2
   dd.pl@@/main/mg/1
    dd.pl@@/main/mg-003/11
     dd.pl@@/main/mg-003/1
      dd.pl@@/main/mg-003
      dd.pl@@/main/eei/fix/5
$ ct des -s -ahl Merge dd.pl@@/main/eei/fix/5
-> /vobs/dd/bin/dd.pl@@/main/mg-003/1

Original comment by marc.girod on 23 Sep 2008 at 11:16

GoogleCodeExporter commented 9 years ago
Fixed in rev 87. Regexp change.

Original comment by marc.girod on 26 Sep 2008 at 12:11