Changeset 2267 in ProjectBuilder for devel/pb-modules/lib/ProjectBuilder/VCS.pm


Ignore:
Timestamp:
Aug 30, 2017, 5:07:48 PM (7 years ago)
Author:
Bruno Cornec
Message:

the function to update v0 conf into v1 is now used in VCS.pm to allow
to add files generated into VCS without poluting Conf. with it
(hierarchy issues)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/lib/ProjectBuilder/VCS.pm

    r2265 r2267  
    3636 
    3737our @ISA = qw(Exporter);
    38 our @EXPORT = qw(pb_vcs_export pb_vcs_get_uri pb_vcs_copy pb_vcs_checkout pb_vcs_up pb_vcs_checkin pb_vcs_isdiff pb_vcs_add pb_vcs_add_if_not_in pb_vcs_cmd pb_vcs_compliant);
     38our @EXPORT = qw(pb_vcs_export pb_vcs_get_uri pb_vcs_copy pb_vcs_checkout pb_vcs_up pb_vcs_checkin pb_vcs_isdiff pb_vcs_add pb_vcs_add_if_not_in pb_vcs_cmd pb_vcs_compliant pb_vcs_conf_update_v0);
    3939($VERSION,$REVISION) = pb_version_init();
    4040
     
    738738}
    739739
    740 
     740=item B<pb_vcs_conf_update_v0>
     741
     742This function transform the old configuration v0 file as first param into a new v1 one as second param  by calling a COnf.pm function and then adds the resulting file into VCS
     743
     744=cut
     745
     746
     747sub pb_vcs_conf_update_v0 {
     748
     749my $orig = shift;
     750my $dest = shift;
     751
     752pb_conf_update_v0($orig,$dest);
     753# Adding this new file to VCS (not removing the previous one)
     754my ($pburl) = pb_conf_get("pburl");
     755my ($scheme, $account, $host, $port, $path) = pb_get_uri($pburl->{$ENV{'PBPROJ'}});
     756pb_vcs_add_if_not_in($scheme,$dest);
     757
     758}
    741759=back
    742760
Note: See TracChangeset for help on using the changeset viewer.