Fossil

Check-in [e926e0b4]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Adding a link to vpatch in vdiff.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | annotate_links
Files: files | file ages | folders
SHA1: e926e0b467ea16cee6502eef8c4503500714bb55
User & Date: viriketo 2012-03-18 14:03:11.213
Context
2012-03-18
14:53
Making the side-by-side diffs autocalculate the width, by default. ... (check-in: 16397d86 user: viriketo tags: annotate_links)
14:03
Adding a link to vpatch in vdiff. ... (check-in: e926e0b4 user: viriketo tags: annotate_links)
13:54
Add a link for a non-detail view in vdiff. ... (check-in: dc313b15 user: viriketo tags: annotate_links)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/info.c.
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812













813
814
815
816
817
818
819
  pFrom = vdiff_parse_manifest("from", &ridFrom);
  if( pFrom==0 ) return;
  pTo = vdiff_parse_manifest("to", &ridTo);
  if( pTo==0 ) return;
  sideBySide = atoi(PD("sbs","1"));
  showDetail = atoi(PD("detail","0"));
  if( !showDetail && sideBySide ) showDetail = 1;
  if( !sideBySide ){
    style_submenu_element("Side-by-side Diff", "sbsdiff",
                          "%s/vdiff?from=%T&to=%T&detail=1&sbs=1",
                          g.zTop, P("from"), P("to"));
    if (showDetail){
        style_submenu_element("Abstract", "abstract",
                              "%s/vdiff?from=%T&to=%T&detail=0&sbs=0",
                              g.zTop, P("from"), P("to"));
    }else{
        style_submenu_element("Unified Diff", "udiff",
                              "%s/vdiff?from=%T&to=%T&detail=1&sbs=0",
                              g.zTop, P("from"), P("to"));
    }
  }else{
    style_submenu_element("Unified Diff", "udiff",
                          "%s/vdiff?from=%T&to=%T&detail=1&sbs=0",
                          g.zTop, P("from"), P("to"));
    style_submenu_element("Abstract", "abstract",
                          "%s/vdiff?from=%T&to=%T&detail=0&sbs=0",
                          g.zTop, P("from"), P("to"));
  }













  style_header("Check-in Differences");
  @ <h2>Difference From:</h2><blockquote>
  checkin_description(ridFrom);
  @ </blockquote><h2>To:</h2><blockquote>
  checkin_description(ridTo);
  @ </blockquote><hr /><p>








<
<
<
<
|
<
<
<
<
<
<
<
<
<
<
<
<




>
>
>
>
>
>
>
>
>
>
>
>
>







785
786
787
788
789
790
791




792












793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
  pFrom = vdiff_parse_manifest("from", &ridFrom);
  if( pFrom==0 ) return;
  pTo = vdiff_parse_manifest("to", &ridTo);
  if( pTo==0 ) return;
  sideBySide = atoi(PD("sbs","1"));
  showDetail = atoi(PD("detail","0"));
  if( !showDetail && sideBySide ) showDetail = 1;




  if (showDetail){












    style_submenu_element("Abstract", "abstract",
                          "%s/vdiff?from=%T&to=%T&detail=0&sbs=0",
                          g.zTop, P("from"), P("to"));
  }
  if( !showDetail || sideBySide ){
    style_submenu_element("Unified Diff", "udiff",
                          "%s/vdiff?from=%T&to=%T&detail=1&sbs=0",
                          g.zTop, P("from"), P("to"));
  }
  if (!sideBySide){
    style_submenu_element("Side-by-side Diff", "sbsdiff",
                          "%s/vdiff?from=%T&to=%T&detail=1&sbs=1",
                          g.zTop, P("from"), P("to"));
  }
  style_submenu_element("Patch", "patch",
                        "%s/vpatch?from=%T&to=%T",
                        g.zTop, P("from"), P("to"));
  style_header("Check-in Differences");
  @ <h2>Difference From:</h2><blockquote>
  checkin_description(ridFrom);
  @ </blockquote><h2>To:</h2><blockquote>
  checkin_description(ridTo);
  @ </blockquote><hr /><p>