inital version of links to diff in scm

[?]
Feb 25, 2010, 3:32 PM
2M7J26V4WXJTOVN7TIOMOLUD2QA4LNTFLNOUTJWKL4XEGE6W2GKQC

Dependencies

  • [2] Z4E37VQW remove useless url in changes overview
  • [3] X5OIC5FF * hydra: ui bug
  • [4] 2B63JW6F * hydra: changes in list in stead of table, also showing changes of changed 'build output' inputs
  • [*] LBNVQXUB * Build the /build stuff in a separate controller.
  • [*] KAZWI5G4 * hydra: buildpage, show changes since last build/successful build
  • [*] 5NO7NCKT * Refactoring.
  • [*] IK53RV4V
  • [*] JLDUSNUO * Unify rendering of finished and scheduled builds.
  • [*] ODNCGFQ5 * Improved the navigation bar: don't include all projects (since that
  • [*] ZI535LI6 * hydra: 'new' UI for project/jobset/job/build
  • [*] N22GPKYT * Put info about logs / build products in the DB.
  • [*] RBNQKATL * Adding persistant releases. A release is a named set of builds.

Change contents

  • edit in src/lib/Hydra/Controller/Build.pm at line 20
    [7.162]
    [8.818]
    $c->stash->{mappers} = [$c->model('DB::UriRevMapper')->all];
  • edit in src/lib/Hydra/Controller/Build.pm at line 23
    [8.819]
    [8.819]
  • edit in src/root/common.tt at line 2
    [10.694]
    [11.6920]
    [% USE String %]
  • edit in src/root/common.tt at line 281
    [12.17970]
    [7.2070]
    [% BLOCK renderDiffUri; %]
    [% nouri = 1 %]
    [% FOREACH m IN mappers %]
    [% base = m.baseuri %]
    [% url = bi1.uri %]
    [% path = url.replace(base, '') %]
    [% IF url.match(base) %]
    <a target="_new" href="[% m.uri.replace('_path_', path).replace('_1_', bi1.revision).replace('_2_', bi2.revision) %]">[% contents %]</a>
    [% nouri = 0 %]
    [% END %]
    [% END %]
    [% IF nouri %]
    [% contents %]
    [% END %]
    [% END %]
  • replacement in src/root/common.tt at line 311
    [3.313][2.0:122]()
    <b>[% bi1.name %]</b></td><td>Revision changed from [% bi1.revision %] to [% bi2.revision %].
    [3.313]
    [3.449]
    <b>[% bi1.name %]</b></td><td><tt>[% INCLUDE renderDiffUri contents=('Revision changed from ' _ bi1.revision _ ' to ' _ bi2.revision) %]</tt>
  • edit in src/sql/hydra.sql at line 423
    [14.5024]
    [14.5024]
    create table UriRevMapper (
    baseuri text not null,
    uri text not null,
    primary key (baseuri)
    );