Fossil

Check-in [3e588c822c]
Login

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

Overview
Comment:Automatically add "glob=<str>" to the query string of the /vdiff page when looking at subdirectory history.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | vdiff-context-glob
Files: files | file ages | folders
SHA3-256: 3e588c822ca1019d269463171734e1f307717941ae40b8daf2838f40536448c4
User & Date: mgagnon 2021-04-23 20:03:16.513
Context
2021-04-26
15:36
Use URLSearchParams API instead use custom GetQueryStringValue() function. URLSearchParams is support by most browser since 2017. ... (check-in: fab81968d1 user: mgagnon tags: vdiff-context-glob)
2021-04-23
20:03
Automatically add "glob=<str>" to the query string of the /vdiff page when looking at subdirectory history. ... (check-in: 3e588c822c user: mgagnon tags: vdiff-context-glob)
2021-04-22
01:40
Merge from '<tt>brlist-timeline</tt>' which enables easy selection of several branches on the [/brlist] page. A special hyperlink in the submenu of [/brlist] page interactively tracks which branches are checked and points to the <tt>/timeline</tt> view of just these selected branches. ... (check-in: 5df47469a1 user: george tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/graph.js.
80
81
82
83
84
85
86












87
88
89
90
91
92
93
  if( css!=="" ){
    var style = document.createElement("style");
    style.textContent = css;
    document.querySelector("head").appendChild(style);
  }
  amendCssOnce = 0;
}













/* The <span> object that holds the tooltip */
var tooltipObj = document.createElement("span");
tooltipObj.className = "tl-tooltip";
tooltipObj.style.display = "none";
document.getElementsByClassName("content")[0].appendChild(tooltipObj);
tooltipObj.onmouseenter = function(){







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







80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
  if( css!=="" ){
    var style = document.createElement("style");
    style.textContent = css;
    document.querySelector("head").appendChild(style);
  }
  amendCssOnce = 0;
}
  
/* Legacy function to get a single key in the QueryString. */
function getQueryStringValue (key) {  
  return decodeURIComponent(
    window.location.search.replace(
      new RegExp(
        "^(?:.*[&\\?]" + encodeURIComponent(key).replace(
          /[\.\+\*]/g, "\\$&") + "(?:\\=([^&]*))?)?.*$", "i"
      ), "$1"
    )
  );  
}  

/* The <span> object that holds the tooltip */
var tooltipObj = document.createElement("span");
tooltipObj.className = "tl-tooltip";
tooltipObj.style.display = "none";
document.getElementsByClassName("content")[0].appendChild(tooltipObj);
tooltipObj.onmouseenter = function(){
566
567
568
569
570
571
572
573
574
575














576
577
578
579
580
581
582
      canvasDiv.className += " sel";
    }else if( selRow==p ){
      selRow = null;
      this.className = this.className.replace(" sel", "");
      canvasDiv.className = canvasDiv.className.replace(" sel", "");
    }else{
      if( tx.fileDiff ){
        location.href=tx.baseUrl + "/fdiff?v1="+selRow.h+"&v2="+p.h
      }else{
        location.href=tx.baseUrl + "/vdiff?from="+selRow.h+"&to="+p.h














      }
    }
    e.stopPropagation()
  }
  function dblclickOnNode(e){
    var p = tx.rowinfo[parseInt(this.id.match(/\d+$/)[0], 10)-tx.iTopRow];
    window.location.href = tx.baseUrl+"/info/"+p.h







|

|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
      canvasDiv.className += " sel";
    }else if( selRow==p ){
      selRow = null;
      this.className = this.className.replace(" sel", "");
      canvasDiv.className = canvasDiv.className.replace(" sel", "");
    }else{
      if( tx.fileDiff ){
        location.href=tx.baseUrl + "/fdiff?v1="+selRow.h+"&v2="+p.h;
      }else{
        var href = tx.baseUrl + "/vdiff?from="+selRow.h+"&to="+p.h;
 
        /* When called from /timeline page, If chng=str was specified in the
        ** QueryString, specify glob=str on the /vdiff page */
        var glob = getQueryStringValue("chng");
        if( !glob ){
          /* When called from /vdiff page, keep the glob= QueryString if
          ** present. */
          glob = getQueryStringValue("glob");
        }
        if( glob ){
          href += "&glob=" + glob;
        }

        location.href = href;
      }
    }
    e.stopPropagation()
  }
  function dblclickOnNode(e){
    var p = tx.rowinfo[parseInt(this.id.match(/\d+$/)[0], 10)-tx.iTopRow];
    window.location.href = tx.baseUrl+"/info/"+p.h