# HG changeset patch # User Steve Losh # Date 1595172939 14400 # Node ID 9419dfa1bff9e56bdd0b089e138057431c6e1e16 # Parent c535b74d3a2ef37c50fccd57e419af67c5a3ccab hg-prompt: Update site. diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/.DS_Store Binary file hg-prompt/.DS_Store has changed diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/_dmedia/goodwolf.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hg-prompt/_dmedia/goodwolf.css Sun Jul 19 11:35:39 2020 -0400 @@ -0,0 +1,62 @@ +/* @override http://localhost:8080/media/css/pygments-monokai-light.css */ +div.highlight .hll { background-color: #FFD7EF; display: block; } +div.highlight .err { color: #fff; background-color: #f00 } /* Error */ +div.highlight .gi { font-weight: bold } /* Diff Insert */ +div.highlight .gd { font-weight: bold } /* Diff Delete */ +div.highlight .k { color: #111} /* Keyword */ +div.highlight .l { color: #111 } /* Literal */ +div.highlight .n { color: #111 } /* Name */ +div.highlight .o { color: #111 } /* Operator */ +div.highlight .p { color: #111 } /* Punctuation */ +div.highlight .c { color: #714678; font-style: italic; font-weight: bold; } /* Comment */ +div.highlight .cm { color: #714678; font-style: italic; font-weight: bold; } /* Comment.Multiline */ +div.highlight .cp { color: #714678; font-style: italic; font-weight: bold; } /* Comment.Preproc */ +div.highlight .c1 { color: #714678; font-style: italic; font-weight: bold; } /* Comment.Single */ +div.highlight .cs { color: #714678; font-style: italic; font-weight: bold; } /* Comment.Special */ +div.highlight .ge { font-style: italic } /* Generic.Emph */ +div.highlight .gs { font-weight: bold } /* Generic.Strong */ +div.highlight .kc { color: #111 } /* Keyword.Constant */ +div.highlight .kd { color: #111 } /* Keyword.Declaration */ +div.highlight .kn { color: #111 } /* Keyword.Namespace */ +div.highlight .kp { color: #111 } /* Keyword.Pseudo */ +div.highlight .kr { color: #111 } /* Keyword.Reserved */ +div.highlight .kt { color: #111 } /* Keyword.Type */ +div.highlight .ld { color: #111 } /* Literal.Date */ +div.highlight .m { color: #111 } /* Literal.Number */ +div.highlight .s { color: #111; font-style: italic; } /* Literal.String */ +div.highlight .na { color: #111 } /* Name.Attribute */ +div.highlight .nb { color: #111 } /* Name.Builtin */ +div.highlight .nc { color: #111 } /* Name.Class */ +div.highlight .no { color: #111 } /* Name.Constant */ +div.highlight .nd { color: #111 } /* Name.Decorator */ +div.highlight .ni { color: #111 } /* Name.Entity */ +div.highlight .ne { color: #111 } /* Name.Exception */ +div.highlight .nf { color: #111} /* Name.Function */ +div.highlight .nl { color: #111 } /* Name.Label */ +div.highlight .nn { color: #111} /* Name.Namespace */ +div.highlight .nx { color: #111 } /* Name.Other */ +div.highlight .py { color: #111 } /* Name.Property */ +div.highlight .nt { color: #111 } /* Name.Tag */ +div.highlight .nv { color: #111 } /* Name.Variable */ +div.highlight .ow { color: #111 } /* Operator.Word */ +div.highlight .w { color: #111 } /* Text.Whitespace */ +div.highlight .mf { color: #111 } /* Literal.Number.Float */ +div.highlight .mh { color: #111 } /* Literal.Number.Hex */ +div.highlight .mi { color: #111 } /* Literal.Number.Integer */ +div.highlight .mo { color: #111 } /* Literal.Number.Oct */ +div.highlight .sb { color: #111 } /* Literal.String.Backtick */ +div.highlight .sc { color: #111 } /* Literal.String.Char */ +div.highlight .sd { color: #111 } /* Literal.String.Doc */ +div.highlight .s2 { color: #111 } /* Literal.String.Double */ +div.highlight .se { color: #111 } /* Literal.String.Escape */ +div.highlight .sh { color: #111 } /* Literal.String.Heredoc */ +div.highlight .si { color: #111 } /* Literal.String.Interpol */ +div.highlight .sx { color: #111 } /* Literal.String.Other */ +div.highlight .sr { color: #111 } /* Literal.String.Regex */ +div.highlight .s1 { color: #111 } /* Literal.String.Single */ +div.highlight .ss { color: #111 } /* Literal.String.Symbol */ +div.highlight .bp { color: #111 } /* Name.Builtin.Pseudo */ +div.highlight .vc { color: #111 } /* Name.Variable.Class */ +div.highlight .vg { color: #111 } /* Name.Variable.Global */ +div.highlight .vi { color: #111 } /* Name.Variable.Instance */ +div.highlight .il { color: #111 } /* Literal.Number.Integer.Long */ diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/_dmedia/less.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hg-prompt/_dmedia/less.js Sun Jul 19 11:35:39 2020 -0400 @@ -0,0 +1,9 @@ +// +// LESS - Leaner CSS v1.2.1 +// http://lesscss.org +// +// Copyright (c) 2009-2011, Alexis Sellier +// Licensed under the Apache 2.0 License. +// +(function(a,b){function c(b){return a.less[b.split("/")[1]]}function m(){var a=document.getElementsByTagName("style");for(var b=0;b0?d.firstChild.nodeValue!==a.nodeValue&&d.replaceChild(a,d.firstChild):d.appendChild(a)})(document.createTextNode(a));c&&h&&(v("saving "+e+" to cache."),h.setItem(e,a),h.setItem(e+":timestamp",c))}function s(a,b,c,e){function i(b,c,d){b.status>=200&&b.status<300?c(b.responseText,b.getResponseHeader("Last-Modified")):typeof d=="function"&&d(b.status,a)}var f=t(),h=g?!1:d.async;typeof f.overrideMimeType=="function"&&f.overrideMimeType("text/css"),f.open("GET",a,h),f.setRequestHeader("Accept",b||"text/x-less, text/css; q=0.9, */*; q=0.5"),f.send(null),g?f.status===0||f.status>=200&&f.status<300?c(f.responseText):e(f.status,a):h?f.onreadystatechange=function(){f.readyState==4&&i(f,c,e)}:i(f,c,e)}function t(){if(a.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(b){return v("browser doesn't support AJAX."),null}}function u(a){return a&&a.parentNode.removeChild(a)}function v(a){d.env=="development"&&typeof console!="undefined"&&console.log("less: "+a)}function w(a,b){var c="less-error-message:"+q(b),e='
  • {content}
  • ',f=document.createElement("div"),g,h,i=[],j=a.filename||b;f.id=c,f.className="less-error-message",h="

    "+(a.message||"There is an error in your .less file")+"

    "+'

    in '+j+" ";var k=function(a,b,c){a.extract[b]&&i.push(e.replace(/\{line\}/,parseInt(a.line)+(b-1)).replace(/\{class\}/,c).replace(/\{content\}/,a.extract[b]))};a.stack?h+="
    "+a.stack.split("\n").slice(1).join("
    "):a.extract&&(k(a,0,""),k(a,1,"line"),k(a,2,""),h+="on line "+a.line+", column "+(a.column+1)+":

    "+""),f.innerHTML=h,r([".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #dd6666;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.line {","color: #ff0000;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),f.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),d.env=="development"&&(g=setInterval(function(){document.body&&(document.getElementById(c)?document.body.replaceChild(f,document.getElementById(c)):document.body.insertBefore(f,document.body.firstChild),clearInterval(g))},10))}Array.isArray||(Array.isArray=function(a){return Object.prototype.toString.call(a)==="[object Array]"||a instanceof Array}),Array.prototype.forEach||(Array.prototype.forEach=function(a,b){var c=this.length>>>0;for(var d=0;d>>0,c=new Array(b),d=arguments[1];for(var e=0;e>>0,c=0;if(b===0&&arguments.length===1)throw new TypeError;if(arguments.length>=2)var d=arguments[1];else do{if(c in this){d=this[c++];break}if(++c>=b)throw new TypeError}while(!0);for(;c=b)return-1;c<0&&(c+=b);for(;cn&&(m[i]=m[i].slice(h-n),n=h)}function w(a){var b,c,d,e,f,j,k,l;if(a instanceof Function)return a.call(o.parsers);if(typeof a=="string")b=g.charAt(h)===a?a:null,d=1,v();else{v();if(!(b=a.exec(m[i])))return null;d=b[0].length}if(b){l=h+=d,j=h+m[i].length-d;while(h=0&&b.charAt(c)!=="\n";c--)d++;return{line:typeof a=="number"?(b.slice(0,a).match(/\n/g)||"").length:null,column:d}}function C(a,b){var c=A(a,b),d=B(a.index,c),e=d.line,f=d.column,g=c.split("\n");this.type=a.type||"Syntax",this.message=a.message,this.filename=a.filename||b.filename,this.index=a.index,this.line=typeof e=="number"?e+1:null,this.callLine=a.call&&B(a.call,c)+1,this.callExtract=g[B(a.call,c)],this.stack=a.stack,this.column=f,this.extract=[g[e-1],g[e],g[e+1]]}var g,h,i,j,k,l,m,n,o,q=this,r=function(){},s=this.imports={paths:b&&b.paths||[],queue:[],files:{},contents:{},mime:b&&b.mime,error:null,push:function(a,c){var e=this;this.queue.push(a),d.Parser.importer(a,this.paths,function(b,d,f){e.queue.splice(e.queue.indexOf(a),1),e.files[a]=d,e.contents[a]=f,b&&!e.error&&(e.error=b),c(b,d),e.queue.length===0&&r()},b)}};return this.env=b=b||{},this.optimization="optimization"in this.env?this.env.optimization:1,this.env.filename=this.env.filename||null,o={imports:s,parse:function(a,e){var j,k,p,q,s,t,u=[],v,x=null;h=i=n=l=0,m=[],g=a.replace(/\r\n/g,"\n"),m=function(a){var c=0,d=/[^"'`\{\}\/\(\)]+/g,e=/\/\*(?:[^*]|\*+[^\/*])*\*+\/|\/\/.*/g,f=0,h,i=a[0],j,k;for(var l=0,m,n;l0)throw{type:"Syntax",message:"Missing closing `}`",filename:b.filename};return a.map(function(a){return a.join("")})}([[]]);try{j=new f.Ruleset([],w(this.parsers.primary)),j.root=!0}catch(y){return e(new C(y,b))}j.toCSS=function(a){var e,g,h;return function(e,g){var h=[],i;e=e||{},typeof g=="object"&&!Array.isArray(g)&&(g=Object.keys(g).map(function(a){var b=g[a];return b instanceof f.Value||(b instanceof f.Expression||(b=new f.Expression([b])),b=new f.Value([b])),new f.Rule("@"+a,b,!1,0)}),h=[new f.Ruleset(null,g)]);try{var j=a.call(this,{frames:h}).toCSS([],{compress:e.compress||!1})}catch(k){throw new C(k,b)}if(i=o.imports.error)throw i instanceof C?i:new C(i,b);return e.yuicompress&&d.mode==="node"?c("./cssmin").compressor.cssmin(j):e.compress?j.replace(/(\s)+/g,"$1"):j}}(j.eval);if(h=0&&g.charAt(z)!=="\n";z--)A++;x={type:"Parse",message:"Syntax Error on line "+s,index:h,filename:b.filename,line:s,column:A,extract:[t[s-2],t[s-1],t[s]]}}this.imports.queue.length>0?r=function(){e(x,j)}:e(x,j)},parsers:{primary:function(){var a,b=[];while((a=w(this.mixin.definition)||w(this.rule)||w(this.ruleset)||w(this.mixin.call)||w(this.comment)||w(this.directive))||w(/^[\s\n]+/))a&&b.push(a);return b},comment:function(){var a;if(g.charAt(h)!=="/")return;if(g.charAt(h+1)==="/")return new f.Comment(w(/^\/\/.*/),!0);if(a=w(/^\/\*(?:[^*]|\*+[^\/*])*\*+\/\n?/))return new f.Comment(a)},entities:{quoted:function(){var a,b=h,c;g.charAt(b)==="~"&&(b++,c=!0);if(g.charAt(b)!=='"'&&g.charAt(b)!=="'")return;c&&w("~");if(a=w(/^"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'/))return new f.Quoted(a[0],a[1]||a[2],c)},keyword:function(){var a;if(a=w(/^[_A-Za-z-][_A-Za-z0-9-]*/))return f.colors.hasOwnProperty(a)?new f.Color(f.colors[a].slice(1)):new f.Keyword(a)},call:function(){var a,c,d=h;if(!(a=/^([\w-]+|%|progid:[\w\.]+)\(/.exec(m[i])))return;a=a[1].toLowerCase();if(a==="url")return null;h+=a.length;if(a==="alpha")return w(this.alpha);w("("),c=w(this.entities.arguments);if(!w(")"))return;if(a)return new f.Call(a,c,d,b.filename)},arguments:function(){var a=[],b;while(b=w(this.entities.assignment)||w(this.expression)){a.push(b);if(!w(","))break}return a},literal:function(){return w(this.entities.dimension)||w(this.entities.color)||w(this.entities.quoted)},assignment:function(){var a,b;if((a=w(/^\w+(?=\s?=)/i))&&w("=")&&(b=w(this.entity)))return new f.Assignment(a,b)},url:function(){var a;if(g.charAt(h)!=="u"||!w(/^url\(/))return;return a=w(this.entities.quoted)||w(this.entities.variable)||w(this.entities.dataURI)||w(/^[-\w%@$\/.&=:;#+?~]+/)||"",x(")"),new f.URL(a.value||a.data||a instanceof f.Variable?a:new f.Anonymous(a),s.paths)},dataURI:function(){var a;if(w(/^data:/)){a={},a.mime=w(/^[^\/]+\/[^,;)]+/)||"",a.charset=w(/^;\s*charset=[^,;)]+/)||"",a.base64=w(/^;\s*base64/)||"",a.data=w(/^,\s*[^)]+/);if(a.data)return a}},variable:function(){var a,c=h;if(g.charAt(h)==="@"&&(a=w(/^@@?[\w-]+/)))return new f.Variable(a,c,b.filename)},color:function(){var a;if(g.charAt(h)==="#"&&(a=w(/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})/)))return new f.Color(a[1])},dimension:function(){var a,b=g.charCodeAt(h);if(b>57||b<45||b===47)return;if(a=w(/^(-?\d*\.?\d+)(px|%|em|rem|pc|ex|in|deg|s|ms|pt|cm|mm|rad|grad|turn)?/))return new f.Dimension(a[1],a[2])},javascript:function(){var a,b=h,c;g.charAt(b)==="~"&&(b++,c=!0);if(g.charAt(b)!=="`")return;c&&w("~");if(a=w(/^`([^`]*)`/))return new f.JavaScript(a[1],h,c)}},variable:function(){var a;if(g.charAt(h)==="@"&&(a=w(/^(@[\w-]+)\s*:/)))return a[1]},shorthand:function(){var a,b;if(!z(/^[@\w.%-]+\/[@\w.-]+/))return;if((a=w(this.entity))&&w("/")&&(b=w(this.entity)))return new f.Shorthand(a,b)},mixin:{call:function(){var a=[],c,d,e,i=h,j=g.charAt(h),k=!1;if(j!=="."&&j!=="#")return;while(c=w(/^[#.](?:[\w-]|\\(?:[a-fA-F0-9]{1,6} ?|[^a-fA-F0-9]))+/))a.push(new f.Element(d,c,h)),d=w(">");w("(")&&(e=w(this.entities.arguments))&&w(")"),w(this.important)&&(k=!0);if(a.length>0&&(w(";")||z("}")))return new f.mixin.Call(a,e,i,b.filename,k)},definition:function(){var a,b=[],c,d,e,i,j;if(g.charAt(h)!=="."&&g.charAt(h)!=="#"||z(/^[^{]*(;|})/))return;t();if(c=w(/^([#.](?:[\w-]|\\(?:[a-fA-F0-9]{1,6} ?|[^a-fA-F0-9]))+)\s*\(/)){a=c[1];while(e=w(this.entities.variable)||w(this.entities.literal)||w(this.entities.keyword)){e instanceof f.Variable?w(":")?(i=x(this.expression,"expected expression"),b.push({name:e.name,value:i})):b.push({name:e.name}):b.push({value:e});if(!w(","))break}x(")"),w(/^when/)&&(j=x(this.conditions,"expected condition")),d=w(this.block);if(d)return new f.mixin.Definition(a,b,d,j);u()}}},entity:function(){return w(this.entities.literal)||w(this.entities.variable)||w(this.entities.url)||w(this.entities.call)||w(this.entities.keyword)||w(this.entities.javascript)||w(this.comment)},end:function(){return w(";")||z("}")},alpha:function(){var a;if(!w(/^\(opacity=/i))return;if(a=w(/^\d+/)||w(this.entities.variable))return x(")"),new f.Alpha(a)},element:function(){var a,b,c,d;c=w(this.combinator),a=w(/^(?:\d+\.\d+|\d+)%/)||w(/^(?:[.#]?|:*)(?:[\w-]|\\(?:[a-fA-F0-9]{1,6} ?|[^a-fA-F0-9]))+/)||w("*")||w(this.attribute)||w(/^\([^)@]+\)/),a||w("(")&&(d=w(this.entities.variable))&&w(")")&&(a=new f.Paren(d));if(a)return new f.Element(c,a,h);if(c.value&&c.value.charAt(0)==="&")return new f.Element(c,null,h)},combinator:function(){var a,b=g.charAt(h);if(b===">"||b==="+"||b==="~"){h++;while(g.charAt(h)===" ")h++;return new f.Combinator(b)}if(b==="&"){a="&",h++,g.charAt(h)===" "&&(a="& ");while(g.charAt(h)===" ")h++;return new f.Combinator(a)}if(b===":"&&g.charAt(h+1)===":"){h+=2;while(g.charAt(h)===" ")h++;return new f.Combinator("::")}return g.charAt(h-1)===" "?new f.Combinator(" "):new f.Combinator(null)},selector:function(){var a,b,c=[],d,e;while(b=w(this.element)){d=g.charAt(h),c.push(b);if(d==="{"||d==="}"||d===";"||d===",")break}if(c.length>0)return new f.Selector(c)},tag:function(){return w(/^[a-zA-Z][a-zA-Z-]*[0-9]?/)||w("*")},attribute:function(){var a="",b,c,d;if(!w("["))return;if(b=w(/^[a-zA-Z-]+/)||w(this.entities.quoted))(d=w(/^[|~*$^]?=/))&&(c=w(this.entities.quoted)||w(/^[\w-]+/))?a=[b,d,c.toCSS?c.toCSS():c].join(""):a=b;if(!w("]"))return;if(a)return"["+a+"]"},block:function(){var a;if(w("{")&&(a=w(this.primary))&&w("}"))return a},ruleset:function(){var a=[],b,c,d;t();while(b=w(this.selector)){a.push(b),w(this.comment);if(!w(","))break;w(this.comment)}if(a.length>0&&(c=w(this.block)))return new f.Ruleset(a,c);l=h,u()},rule:function(){var a,b,c=g.charAt(h),d,e;t();if(c==="."||c==="#"||c==="&")return;if(a=w(this.variable)||w(this.property)){a.charAt(0)!="@"&&(e=/^([^@+\/'"*`(;{}-]*);/.exec(m[i]))?(h+=e[0].length-1,b=new f.Anonymous(e[1])):a==="font"?b=w(this.font):b=w(this.value),d=w(this.important);if(b&&w(this.end))return new f.Rule(a,b,d,k);l=h,u()}},"import":function(){var a,b,c=h;if(w(/^@import\s+/)&&(a=w(this.entities.quoted)||w(this.entities.url))){b=w(this.mediaFeatures);if(w(";"))return new f.Import(a,s,b,c)}},mediaFeature:function(){var a=[];do if(e=w(this.entities.keyword))a.push(e);else if(w("(")){p=w(this.property),e=w(this.entity);if(!w(")"))return null;if(p&&e)a.push(new f.Paren(new f.Rule(p,e,null,h,!0)));else{if(!e)return null;a.push(new f.Paren(e))}}while(e);if(a.length>0)return new f.Expression(a)},mediaFeatures:function(){var a,b=[];while(a=w(this.mediaFeature)){b.push(a);if(!w(","))break}return b.length>0?b:null},media:function(){var a;if(w(/^@media/)){a=w(this.mediaFeatures);if(rules=w(this.block))return new f.Directive("@media",rules,a)}},directive:function(){var a,b,c,d,e,i;if(g.charAt(h)!=="@")return;if(b=w(this["import"])||w(this.media))return b;if(a=w(/^@page|@keyframes/)||w(/^@(?:-webkit-|-moz-|-o-|-ms-)[a-z0-9-]+/)){d=(w(/^[^{]+/)||"").trim();if(c=w(this.block))return new f.Directive(a+" "+d,c)}else if(a=w(/^@[-a-z]+/))if(a==="@font-face"){if(c=w(this.block))return new f.Directive(a,c)}else if((b=w(this.entity))&&w(";"))return new f.Directive(a,b)},font:function(){var a=[],b=[],c,d,e,g;while(g=w(this.shorthand)||w(this.entity))b.push(g);a.push(new f.Expression(b));if(w(","))while(g=w(this.expression)){a.push(g);if(!w(","))break}return new f.Value(a)},value:function(){var a,b=[],c;while(a=w(this.expression)){b.push(a);if(!w(","))break}if(b.length>0)return new f.Value(b)},important:function(){if(g.charAt(h)==="!")return w(/^! *important/)},sub:function(){var a;if(w("(")&&(a=w(this.expression))&&w(")"))return a},multiplication:function(){var a,b,c,d;if(a=w(this.operand)){while(!z(/^\/\*/)&&(c=w("/")||w("*"))&&(b=w(this.operand)))d=new f.Operation(c,[d||a,b]);return d||a}},addition:function(){var a,b,c,d;if(a=w(this.multiplication)){while((c=w(/^[-+]\s+/)||g.charAt(h-1)!=" "&&(w("+")||w("-")))&&(b=w(this.multiplication)))d=new f.Operation(c,[d||a,b]);return d||a}},conditions:function(){var a,b,c=h,d;if(a=w(this.condition)){while(w(",")&&(b=w(this.condition)))d=new f.Condition("or",d||a,b,c);return d||a}},condition:function(){var a,b,c,d,e=h,g=!1;w(/^not/)&&(g=!0),x("(");if(a=w(this.addition)||w(this.entities.keyword)||w(this.entities.quoted))return(d=w(/^(?:>=|=<|[<=>])/))?(b=w(this.addition)||w(this.entities.keyword)||w(this.entities.quoted))?c=new f.Condition(d,a,b,e,g):y("expected expression"):c=new f.Condition("=",a,new f.Keyword("true"),e,g),x(")"),w(/^and/)?new f.Condition("and",c,w(this.condition)):c},operand:function(){var a,b=g.charAt(h+1);g.charAt(h)==="-"&&(b==="@"||b==="(")&&(a=w("-"));var c=w(this.sub)||w(this.entities.dimension)||w(this.entities.color)||w(this.entities.variable)||w(this.entities.call);return a?new f.Operation("*",[new f.Dimension(-1),c]):c},expression:function(){var a,b,c=[],d;while(a=w(this.addition)||w(this.entity))c.push(a);if(c.length>0)return new f.Expression(c)},property:function(){var a;if(a=w(/^(\*?-?[-a-z_0-9]+)\s*:/))return a[1]}}}};if(d.mode==="browser"||d.mode==="rhino")d.Parser.importer=function(a,b,c,d){a.charAt(0)!=="/"&&b.length>0&&(a=b[0]+a),o({href:a,title:a,type:d.mime},c,!0)};(function(a){function b(b){return a.functions.hsla(b.h,b.s,b.l,b.a)}function c(b){if(b instanceof a.Dimension)return parseFloat(b.unit=="%"?b.value/100:b.value);if(typeof b=="number")return b;throw{error:"RuntimeError",message:"color functions take numbers as parameters"}}function d(a){return Math.min(1,Math.max(0,a))}a.functions={rgb:function(a,b,c){return this.rgba(a,b,c,1)},rgba:function(b,d,e,f){var g=[b,d,e].map(function(a){return c(a)}),f=c(f);return new a.Color(g,f)},hsl:function(a,b,c){return this.hsla(a,b,c,1)},hsla:function(a,b,d,e){function h(a){return a=a<0?a+1:a>1?a-1:a,a*6<1?g+(f-g)*a*6:a*2<1?f:a*3<2?g+(f-g)*(2/3-a)*6:g}a=c(a)%360/360,b=c(b),d=c(d),e=c(e);var f=d<=.5?d*(b+1):d+b-d*b,g=d*2-f;return this.rgba(h(a+1/3)*255,h(a)*255,h(a-1/3)*255,e)},hue:function(b){return new a.Dimension(Math.round(b.toHSL().h))},saturation:function(b){return new a.Dimension(Math.round(b.toHSL().s*100),"%")},lightness:function(b){return new a.Dimension(Math.round(b.toHSL().l*100),"%")},alpha:function(b){return new a.Dimension(b.toHSL().a)},saturate:function(a,c){var e=a.toHSL();return e.s+=c.value/100,e.s=d(e.s),b(e)},desaturate:function(a,c){var e=a.toHSL();return e.s-=c.value/100,e.s=d(e.s),b(e)},lighten:function(a,c){var e=a.toHSL();return e.l+=c.value/100,e.l=d(e.l),b(e)},darken:function(a,c){var e=a.toHSL();return e.l-=c.value/100,e.l=d(e.l),b(e)},fadein:function(a,c){var e=a.toHSL();return e.a+=c.value/100,e.a=d(e.a),b(e)},fadeout:function(a,c){var e=a.toHSL();return e.a-=c.value/100,e.a=d(e.a),b(e)},fade:function(a,c){var e=a.toHSL();return e.a=c.value/100,e.a=d(e.a),b(e)},spin:function(a,c){var d=a.toHSL(),e=(d.h+c.value)%360;return d.h=e<0?360+e:e,b(d)},mix:function(b,c,d){var e=d.value/100,f=e*2-1,g=b.toHSL().a-c.toHSL().a,h=((f*g==-1?f:(f+g)/(1+f*g))+1)/2,i=1-h,j=[b.rgb[0]*h+c.rgb[0]*i,b.rgb[1]*h+c.rgb[1]*i,b.rgb[2]*h+c.rgb[2]*i],k=b.alpha*e+c.alpha*(1-e);return new a.Color(j,k)},greyscale:function(b){return this.desaturate(b,new a.Dimension(100))},e:function(b){return new a.Anonymous(b instanceof a.JavaScript?b.evaluated:b)},escape:function(b){return new a.Anonymous(encodeURI(b.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},"%":function(b){var c=Array.prototype.slice.call(arguments,1),d=b.value;for(var e=0;e255?255:a<0?0:a).toString(16),a.length===1?"0"+a:a}).join("")},operate:function(b,c){var d=[];c instanceof a.Color||(c=c.toColor());for(var e=0;e<3;e++)d[e]=a.operate(b,this.rgb[e],c.rgb[e]);return new a.Color(d,this.alpha+c.alpha)},toHSL:function(){var a=this.rgb[0]/255,b=this.rgb[1]/255,c=this.rgb[2]/255,d=this.alpha,e=Math.max(a,b,c),f=Math.min(a,b,c),g,h,i=(e+f)/2,j=e-f;if(e===f)g=h=0;else{h=i>.5?j/(2-e-f):j/(e+f);switch(e){case a:g=(b-c)/j+(b255?255:a<0?0:a).toString(16),a.length===1?"0"+a:a}).join("")}}}(c("../tree")),function(a){a.Comment=function(a,b){this.value=a,this.silent=!!b},a.Comment.prototype={toCSS:function(a){return a.compress?"":this.value},eval:function(){return this}}}(c("../tree")),function(a){a.Condition=function(a,b,c,d,e){this.op=a.trim(),this.lvalue=b,this.rvalue=c,this.index=d,this.negate=e},a.Condition.prototype.eval=function(a){var b=this.lvalue.eval(a),c=this.rvalue.eval(a),d=this.index,e,e=function(a){switch(a){case"and":return b&&c;case"or":return b||c;default:if(b.compare)e=b.compare(c);else{if(!c.compare)throw{type:"Type",message:"Unable to perform comparison",index:d};e=c.compare(b)}switch(e){case-1:return a==="<"||a==="=<";case 0:return a==="="||a===">="||a==="=<";case 1:return a===">"||a===">="}}}(this.op);return this.negate?!e:e}}(c("../tree")),function(a){a.Dimension=function(a,b){this.value=parseFloat(a),this.unit=b||null},a.Dimension.prototype={eval:function(){return this},toColor:function(){return new a.Color([this.value,this.value,this.value])},toCSS:function(){var a=this.value+this.unit;return a},operate:function(b,c){return new a.Dimension(a.operate(b,this.value,c.value),this.unit||c.unit)},compare:function(b){return b instanceof a.Dimension?b.value>this.value?-1:b.value":a.compress?">":" > "}[this.value]}}(c("../tree")),function(a){a.Expression=function(a){this.value=a},a.Expression.prototype={eval:function(b){return this.value.length>1?new a.Expression(this.value.map(function(a){return a.eval(b)})):this.value.length===1?this.value[0].eval(b):this},toCSS:function(a){return this.value.map(function(b){return b.toCSS?b.toCSS(a):""}).join(" ")}}}(c("../tree")),function(a){a.Import=function(b,c,d,e){var f=this;this.index=e,this._path=b,this.features=d&&new a.Value(d),b instanceof a.Quoted?this.path=/\.(le?|c)ss(\?.*)?$/.test(b.value)?b.value:b.value+".less":this.path=b.value.value||b.value,this.css=/css(\?.*)?$/.test(this.path),this.css||c.push(this.path,function(b,c){b&&(b.index=e),f.root=c||new a.Ruleset([],[])})},a.Import.prototype={toCSS:function(a){var b=this.features?" "+this.features.toCSS(a):"";return this.css?"@import "+this._path.toCSS()+b+";\n":""},eval:function(b){var c,d=this.features&&this.features.eval(b);if(this.css)return this;c=new a.Ruleset([],this.root.rules.slice(0));for(var e=0;e0){c=this.arguments&&this.arguments.map(function(b){return b.eval(a)});for(var g=0;g0&&c>this.params.length)return!1;if(this.condition&&!this.condition.eval({frames:[this.evalParams(b,a)].concat(b.frames)}))return!1;d=Math.min(c,this.arity);for(var f=0;fe.selectors[g].elements.length?Array.prototype.push.apply(d,e.find(new a.Selector(b.elements.slice(1)),c)):d.push(e);break}}),this._lookups[g]=d)},toCSS:function(b,c){var d=[],e=[],f=[],g=[],h,i;this.root||(b.length===0?g=this.selectors.map(function(a){return[a]}):this.joinSelectors(g,b,this.selectors));for(var j=0;j0&&(h=g.map(function(a){return a.map(function(a){return a.toCSS(c)}).join("").trim()}).join(c.compress?",":g.length>3?",\n":", "),d.push(h,(c.compress?"{":" {\n ")+e.join(c.compress?"":"\n ")+(c.compress?"}":"\n}\n"))),d.push(f),d.join("")+(c.compress?"\n":"")},joinSelectors:function(a,b,c){for(var d=0;d0&&e.push(new a.Selector(g)),h.length>0&&f.push(new a.Selector(h));for(var l=0;l0&&(b.value=c[0]+(b.value.charAt(0)==="/"?b.value.slice(1):b.value)),this.value=b,this.paths=c)},b.URL.prototype={toCSS:function(){return"url("+(this.attrs?"data:"+this.attrs.mime+this.attrs.charset+this.attrs.base64+this.attrs.data:this.value.toCSS())+")"},eval:function(a){return this.attrs?this:new b.URL(this.value.eval(a),this.paths)}}}(c("../tree")),function(a){a.Value=function(a){this.value=a,this.is="value"},a.Value.prototype={eval:function(b){return this.value.length===1?this.value[0].eval(b):new a.Value(this.value.map(function(a){return a.eval(b)}))},toCSS:function(a){return this.value.map(function(b){return b.toCSS(a)}).join(a.compress?",":", ")}}}(c("../tree")),function(a){a.Variable=function(a,b,c){this.name=a,this.index=b,this.file=c},a.Variable.prototype={eval:function(b){var c,d,e=this.name;e.indexOf("@@")==0&&(e="@"+(new a.Variable(e.slice(1))).eval(b).value);if(c=a.find(b.frames,function(a){if(d=a.variable(e))return d.value.eval(b)}))return c;throw{type:"Name",message:"variable "+e+" is undefined",filename:this.file,index:this.index}}}}(c("../tree")),function(a){a.find=function(a,b){for(var c=0,d;c1?"["+a.value.map(function(a){return a.toCSS(!1)}).join(", ")+"]":a.toCSS(!1)}}(c("./tree"));var g=location.protocol==="file:"||location.protocol==="chrome:"||location.protocol==="chrome-extension:"||location.protocol==="resource:";d.env=d.env||(location.hostname=="127.0.0.1"||location.hostname=="0.0.0.0"||location.hostname=="localhost"||location.port.length>0||g?"development":"production"),d.async=!1,d.poll=d.poll||(g?1e3:1500),d.watch=function(){return this.watchMode=!0},d.unwatch=function(){return this.watchMode=!1},d.env==="development"?(d.optimization=0,/!watch/.test(location.hash)&&d.watch(),d.watchTimer=setInterval(function(){d.watchMode&&n(function(a,b,c,d,e){b&&r(b.toCSS(),d,e.lastModified)})},d.poll)):d.optimization=3;var h;try{h=typeof a.localStorage=="undefined"?null:a.localStorage}catch(i){h=null}var j=document.getElementsByTagName("link"),k=/^text\/(x-)?less$/;d.sheets=[];for(var l=0;l - - - - - - - - - - - - hg-prompt » - Documentation - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - -

    Documentation

    -

    Usage

    -

    How the hg prompt command can be used.

    -

    Keywords

    -

    Keywords available to use with the command.

    -

    Sample Prompts

    -

    Some sample prompts to get you started.

    - - - - -
    - - - - - - - \ No newline at end of file diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/documentation/keywords/index.html --- a/hg-prompt/documentation/keywords/index.html Sat Jul 18 12:35:26 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,304 +0,0 @@ - - - - - - - - - - - - - hg-prompt » - Keywords - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - -

    Keywords

    -

    There a number of keywords available. If you have any suggestions for more please let me know.

    -

    Some of the keywords support filters. These filters can be combined when it makes sense. If in doubt, try it!

    - -

    bookmark

    -
    -
    Display the current bookmark (requires the bookmarks extension).
    -
    -

    branch

    -
    -
    -

    Display the current branch.

    -
    -
    |quiet
    -
    Display the current branch only if it is not the default branch.
    -
    -
    -
    -

    count

    -
    -
    -

    Display the number of revisions in the given revset (the revset all() -will be used if none is given).

    -

    See hg help revsets for more information.

    -
    -
    |REVSET
    -
    The revset to count.
    -
    -
    -
    -

    incoming

    -
    -
    -

    Display nothing, but if the default path contains incoming changesets the -extra text will be expanded.

    -

    For example: {incoming changes{incoming}} will expand to -incoming changes if there are changes, otherwise nothing.

    -

    Checking for incoming changesets is an expensive operation, so hg-prompt -will cache the results in .hg/prompt/cache/ and refresh them every 15 -minutes.

    -
    -
    |count
    -
    Display the number of incoming changesets (if greater than 0).
    -
    -
    -
    -

    node

    -
    -
    -

    Display the (full) changeset hash of the current parent.

    -
    -
    |short
    -
    Display the hash as the short, 12-character form.
    -
    |merge
    -
    Display the hash of the changeset you're merging with.
    -
    -
    -
    -

    outgoing

    -
    -
    -

    Display nothing, but if the current repository contains outgoing -changesets (to default) the extra text will be expanded.

    -

    For example: {outgoing changes{outgoing}} will expand to -outgoing changes if there are changes, otherwise nothing.

    -

    Checking for outgoing changesets is an expensive operation, so hg-prompt -will cache the results in .hg/prompt/cache/ and refresh them every 15 -minutes.

    -
    -
    |count
    -
    Display the number of outgoing changesets (if greater than 0).
    -
    -
    -
    -

    patch

    -
    -
    -

    Display the topmost currently-applied patch (requires the mq -extension).

    -
    -
    |count
    -
    Display the number of patches in the queue.
    -
    |applied
    -
    Display the number of currently applied patches in the queue.
    -
    |unapplied
    -
    Display the number of currently unapplied patches in the queue.
    -
    |quiet
    -
    Display a number only if there are any patches in the queue.
    -
    -
    -
    -

    patches

    -
    -
    -

    Display a list of the current patches in the queue. It will look like -this:

    -
    $ hg prompt '{patches}'
    -bottom-patch -> middle-patch -> top-patch
    -
    - - -
    -
    |reverse
    -
    Display the patches in reverse order (i.e. topmost first).
    -
    |hide_applied
    -
    Do not display applied patches.
    -
    |hide_unapplied
    -
    Do not display unapplied patches.
    -
    |join(SEP)
    -
    Display SEP between each patch, instead of the default ->.
    -
    |pre_applied(STRING)
    -
    Display STRING immediately before each applied patch. Useful for -adding color codes.
    -
    |post_applied(STRING)
    -
    Display STRING immediately after each applied patch. Useful for -resetting color codes.
    -
    |pre_unapplied(STRING)
    -
    Display STRING immediately before each unapplied patch. Useful for -adding color codes.
    -
    |post_unapplied(STRING)
    -
    Display STRING immediately after each unapplied patch. Useful for -resetting color codes.
    -
    -
    -
    -

    rev

    -
    -
    -

    Display the repository-local changeset number of the current parent.

    -
    -
    |merge
    -
    Display the repository-local changeset number of the changeset you're -merging with.
    -
    -
    -
    -

    root

    -
    -
    -

    Display the full path to the root of the current repository, without a -trailing slash.

    -
    -
    |basename
    -
    Display the directory name of the root of the current repository. For -example, if the repository is in /home/u/myrepo then this keyword -would expand to myrepo.
    -
    -
    -
    -

    status

    -
    -
    -

    Display ! if the repository has any changed/added/removed files, -otherwise ? if it has any untracked (but not ignored) files, otherwise -nothing.

    -
    -
    |modified
    -
    Display ! if the current repository contains files that have been -modified, added, removed, or deleted, otherwise nothing.
    -
    |unknown
    -
    Display ? if the current repository contains untracked files, -otherwise nothing.
    -
    -
    -
    -

    tags

    -
    -
    -

    Display the tags of the current parent, separated by a space.

    -
    -
    |SEP
    -
    Display the tags of the current parent, separated by SEP.
    -
    -
    -
    -

    task

    -
    -
    Display the current task (requires the tasks extension).
    -
    -

    tip

    -
    -
    -

    Display the repository-local changeset number of the current tip.

    -
    -
    |node
    -
    Display the (full) changeset hash of the current tip.
    -
    |short
    -
    Display a short form of the changeset hash of the current tip (must be -used with the |node filter)
    -
    -
    -
    -

    update

    -
    -
    Display ^ if the current parent is not the tip of the current branch, -otherwise nothing. In effect, this lets you see if running hg update -would do something.
    -
    - - - - -
    - - - - - - - \ No newline at end of file diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/documentation/keywords/list.html --- a/hg-prompt/documentation/keywords/list.html Sat Jul 18 12:35:26 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,98 +0,0 @@ - - - - - - - - - - - - - hg-prompt » - ls /documentation/keywords - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - -

    ls /documentation/keywords

    - - - - - - - - - - - -
    - - - - - - - \ No newline at end of file diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/documentation/list.html --- a/hg-prompt/documentation/list.html Sat Jul 18 12:35:26 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,124 +0,0 @@ - - - - - - - - - - - - - hg-prompt » - ls /documentation - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - -

    ls /documentation

    - - -

    Directories

    - - - - - - - - - - - - - - - -
    - - keywords/ - -
    - - samples/ - -
    - - usage/ - -
    - - - - - - - - - - -
    - - - - - - - \ No newline at end of file diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/documentation/samples/index.html --- a/hg-prompt/documentation/samples/index.html Sat Jul 18 12:35:26 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,136 +0,0 @@ - - - - - - - - - - - - - hg-prompt » - Sample Prompts - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - -

    Sample Prompts

    -

    hg-prompt supports many keywords, but you probably don't want to use them -all at once. Which keywords you'll find useful depends on the workflow(s) you -commonly use.

    -

    Here are some example prompts to get you started.

    -

    A Basic Prompt

    -

    A very simple prompt could tell you:

    -
      -
    • Which named branch you're currently working on.
    • -
    • If there are any uncommitted changes in the working directory.
    • -
    • If you're at a revision that's not a branch tip (i.e. if running hg update - would do something).
    • -
    -

    To get a prompt like this you could add this to your ~/.bashrc file:

    -
    export PS1='\u in \w`hg prompt "{on {branch}}{status}{update}" 2>/dev/null` $'
    -
    - - -

    The result would look something like this:

    -
    username in ~/src $ cd project
    -username in ~/src/project on feature-branch $ touch sample
    -username in ~/src/project on feature-branch? $ hg add sample
    -username in ~/src/project on feature-branch! $ hg commit -m 'Add a file.'
    -username in ~/src/project on feature-branch $ hg update default
    -username in ~/src/project on default $ hg update 0
    -username in ~/src/project on default^ $
    -
    - - -

    The 2>/dev/null part of the prompt command prevents errors from showing when -you're not currently in a Mercurial repository.

    -

    The keywords ({branch}, {status} and {update}) display the relevant -information.

    -

    The extra text in the {branch} keyword will only display if a branch exists, -so you won't see the word "on" if you're not in a repository.

    -

    A More Compact Basic Prompt

    -

    Some people prefer a smaller, less obtrusive prompt. To get that kind of -prompt you can omit some of the less important text:

    -
    export PS1='\w`hg prompt "[{branch}{status}{update}]" 2>/dev/null` $'
    -
    - - -

    That will give you something like this:

    -
    ~/src $ cd project
    -~/src/project[feature-branch] $ touch sample
    -~/src/project[feature-branch?] $ hg add sample
    -~/src/project[feature-branch!] $ hg commit -m 'Add a file.'
    -~/src/project[feature-branch] $ hg update default
    -~/src/project[default] $ hg update 0
    -~/src/project[default^] $
    -
    - - - - -
    - - - - - - - \ No newline at end of file diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/documentation/samples/list.html --- a/hg-prompt/documentation/samples/list.html Sat Jul 18 12:35:26 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,98 +0,0 @@ - - - - - - - - - - - - - hg-prompt » - ls /documentation/samples - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - -

    ls /documentation/samples

    - - - - - - - - - - - -
    - - - - - - - \ No newline at end of file diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/documentation/usage/index.html --- a/hg-prompt/documentation/usage/index.html Sat Jul 18 12:35:26 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,134 +0,0 @@ - - - - - - - - - - - - - hg-prompt » - Usage - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - -

    Usage

    -

    The hg prompt command takes a single string as an argument and outputs it. -Here's a simple (and useless) example:

    -
    $ hg prompt "test"
    -test
    -
    - - -

    Keywords in curly braces can be used to output repository information:

    -
    $ hg prompt "currently on {branch}"
    -currently on default
    -
    - - -

    Keywords also have an extended form:

    -
    {optional text{branch}more optional text}
    -
    - - -

    This form will output the text and the expanded keyword only if the -keyword successfully expands. This can be useful for displaying extra text -only if it's applicable:

    -
    $ hg prompt "currently on {branch} and at {bookmark}"
    -currently on branch default and at
    -
    -$ hg prompt "currently on {branch} {and at {bookmark}}"
    -currently on branch default
    -
    -$ hg bookmark my-book
    -
    -$ hg prompt "currently on {branch} {and at {bookmark}}"
    -currently on branch default and at my-book
    -
    - - -

    You can give the --angle-brackets option to use angle brackets for keywords -instead of curly brackets. This can come in handy when combining a simple -prompt string with more complicated shell functionality (like color -variables):

    -
    $ hg prompt "{currently on {branch}}"
    -currently on default
    -
    -$ hg prompt --angle-brackets "<currently on <branch>>"
    -currently on default
    -
    - - -

    Take a look at the keywords documentation to see all the keywords -hg-prompt supports.

    - - - - -
    - - - - - - - \ No newline at end of file diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/documentation/usage/list.html --- a/hg-prompt/documentation/usage/list.html Sat Jul 18 12:35:26 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,98 +0,0 @@ - - - - - - - - - - - - - hg-prompt » - ls /documentation/usage - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - -

    ls /documentation/usage

    - - - - - - - - - - - -
    - - - - - - - \ No newline at end of file diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/full-documentation/index.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hg-prompt/full-documentation/index.html Sun Jul 19 11:35:39 2020 -0400 @@ -0,0 +1,257 @@ + + + + + Documentation / hg-prompt + + + + + +
    +

    hg-prompt

    +
    +

    Documentation

    This page contains the full documentation for hg-prompt.

    + +

    Usage

    +

    The hg prompt command takes a single string as an argument and outputs it. +Here's a simple (and useless) example:

    +
    $ hg prompt "test"
    +test
    +
    + + +

    Keywords in curly braces can be used to output repository information:

    +
    $ hg prompt "currently on {branch}"
    +currently on default
    +
    + + +

    Keywords also have an extended form:

    +
    {optional text{branch}more optional text}
    +
    + + +

    This form will output the text and the expanded keyword only if the +keyword successfully expands. This can be useful for displaying extra text +only if it's applicable:

    +
    $ hg prompt "currently on {branch} and at {bookmark}"
    +currently on branch default and at
    +
    +$ hg prompt "currently on {branch} {and at {bookmark}}"
    +currently on branch default
    +
    +$ hg bookmark my-book
    +
    +$ hg prompt "currently on {branch} {and at {bookmark}}"
    +currently on branch default and at my-book
    +
    + + +

    You can give the --angle-brackets option to use angle brackets for keywords +instead of curly brackets. This can come in handy when combining a simple +prompt string with more complicated shell functionality (like color +variables):

    +
    $ hg prompt "{currently on {branch}}"
    +currently on default
    +
    +$ hg prompt --angle-brackets "<currently on <branch>>"
    +currently on default
    +
    + + +

    Keywords

    +

    There a number of keywords available. Some of the keywords support filters. +These filters can be combined when it makes sense. If in doubt, try it!

    +

    bookmark

    +

    Display the current bookmark (requires the bookmarks extension).

    +

    branch

    +

    Display the current branch.

    +
      +
    • |quiet: Display the current branch only if it is not the default branch.
    • +
    +

    closed

    +

    Display X if working on a closed branch (i.e. if committing now would reopen +the branch).

    +

    count

    +

    Display the number of revisions in the given revset (the revset all() will be +used if none is given).

    +

    See hg help revsets for more information.

    +
      +
    • |REVSET: The revset to count.
    • +
    +

    incoming

    +

    Display nothing, but if the default path contains incoming changesets the extra +text will be expanded.

    +

    For example: {incoming changes{incoming}} will expand to incoming changes if +there are changes, otherwise nothing.

    +

    Checking for incoming changesets is an expensive operation, so hg-prompt will +cache the results in .hg/prompt/cache/ and refresh them every 15 minutes.

    +
      +
    • |count: Display the number of incoming changesets (if greater than 0).
    • +
    +

    node

    +

    Display the (full) changeset hash of the current parent.

    +
      +
    • |short: Display the hash as the short, 12-character form.
    • +
    • |merge: Display the hash of the changeset you're merging with.
    • +
    +

    outgoing

    +

    Display nothing, but if the current repository contains outgoing changesets (to +default) the extra text will be expanded.

    +

    For example: {outgoing changes{outgoing}} will expand to outgoing changes if +there are changes, otherwise nothing.

    +

    Checking for outgoing changesets is an expensive operation, so hg-prompt will +cache the results in .hg/prompt/cache/ and refresh them every 15 minutes.

    +
      +
    • |count: Display the number of outgoing changesets (if greater than 0).
    • +
    +

    patch

    +

    Display the topmost currently-applied patch (requires the mq extension).

    +
      +
    • |count: Display the number of patches in the queue.
    • +
    • |applied: Display the number of currently applied patches in the queue.
    • +
    • |unapplied: Display the number of currently unapplied patches in the queue.
    • +
    • |quiet: Display a number only if there are any patches in the queue.
    • +
    +

    patches

    +

    Display a list of the current patches in the queue. It will look like this:

    +
    $ hg prompt '{patches}'
    +bottom-patch -> middle-patch -> top-patch
    +
    + + +
      +
    • |reverse: Display the patches in reverse order (i.e. topmost first).
    • +
    • |hide_applied: Do not display applied patches.
    • +
    • |hide_unapplied: Do not display unapplied patches.
    • +
    • |join(SEP): Display SEP between each patch, instead of the default ->.
    • +
    • |pre_applied(STRING): Display STRING immediately before each applied patch. Useful for adding color codes.
    • +
    • |post_applied(STRING): Display STRING immediately after each applied patch. Useful for resetting color codes.
    • +
    • |pre_unapplied(STRING): Display STRING immediately before each unapplied patch. Useful for adding color codes.
    • +
    • |post_unapplied(STRING): Display STRING immediately after each unapplied patch. Useful for resetting color codes.
    • +
    +

    queue

    +

    Display the name of the current MQ queue.

    +

    rev

    +

    Display the repository-local changeset number of the current parent.

    +
      +
    • |merge: Display the repository-local changeset number of the changeset you're merging with.
    • +
    +

    root

    +

    Display the full path to the root of the current repository, without a trailing +slash.

    +
      +
    • |basename: Display the directory name of the root of the current repository. For example, if the repository is in /home/u/myrepo then this keyword would expand to myrepo.
    • +
    +

    status

    +

    Display ! if the repository has any changed/added/removed files, otherwise ? +if it has any untracked (but not ignored) files, otherwise nothing.

    +
      +
    • |modified: Display ! if the current repository contains files that have been modified, added, removed, or deleted, otherwise nothing.
    • +
    • |unknown: Display ? if the current repository contains untracked files, otherwise nothing.
    • +
    +

    tags

    +

    Display the tags of the current parent, separated by a space.

    +
      +
    • |quiet: Display the tags of the current parent, excluding the tag tip.
    • +
    • |SEP: Display the tags of the current parent, separated by SEP.
    • +
    +

    task

    +

    Display the current task (requires the tasks extension).

    +

    tip

    +

    Display the repository-local changeset number of the current tip.

    +
      +
    • |node: Display the (full) changeset hash of the current tip.
    • +
    • |short: Display a short form of the changeset hash of the current tip (must be used with the |node filter)
    • +
    +

    update

    +

    Display ^ if the current parent is not the tip of the current branch, +otherwise nothing. In effect, this lets you see if running hg update would do +something.

    +

    Sample Prompts

    +

    hg-prompt supports many keywords, but you probably don't want to use them all +at once. Which keywords you'll find useful depends on the workflow(s) you +commonly use.

    +

    Here are some example prompts to get you started.

    +

    A Basic Prompt

    +

    A very simple prompt could tell you:

    +
      +
    • Which named branch you're currently working on.
    • +
    • If there are any uncommitted changes in the working directory.
    • +
    • If you're at a revision that's not a branch tip (i.e. if running hg update + would do something).
    • +
    +

    To get a prompt like this you could add this to your ~/.bashrc file:

    +
    export PS1='\u in \w`hg prompt "{on {branch}}{status}{update}" 2>/dev/null` $'
    +
    + + +

    The result would look something like this:

    +
    username in ~/src $ cd project
    +username in ~/src/project on feature-branch $ touch sample
    +username in ~/src/project on feature-branch? $ hg add sample
    +username in ~/src/project on feature-branch! $ hg commit -m 'Add a file.'
    +username in ~/src/project on feature-branch $ hg update default
    +username in ~/src/project on default $ hg update 0
    +username in ~/src/project on default^ $
    +
    + + +

    The 2>/dev/null part of the prompt command prevents errors from showing when +you're not currently in a Mercurial repository.

    +

    The keywords ({branch}, {status} and {update}) display the relevant +information.

    +

    The extra text in the {branch} keyword will only display if a branch exists, +so you won't see the word "on" if you're not in a repository.

    +

    A More Compact Basic Prompt

    +

    Some people prefer a smaller, less obtrusive prompt. To get that kind of +prompt you can omit some of the less important text:

    +
    export PS1='\w`hg prompt "[{branch}{status}{update}]" 2>/dev/null` $'
    +
    + + +

    That will give you something like this:

    +
    ~/src $ cd project
    +~/src/project[feature-branch] $ touch sample
    +~/src/project[feature-branch?] $ hg add sample
    +~/src/project[feature-branch!] $ hg commit -m 'Add a file.'
    +~/src/project[feature-branch] $ hg update default
    +~/src/project[default] $ hg update 0
    +~/src/project[default^] $
    +
    +
    + +
    + + \ No newline at end of file diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/index.html --- a/hg-prompt/index.html Sat Jul 18 12:35:26 2020 -0400 +++ b/hg-prompt/index.html Sun Jul 19 11:35:39 2020 -0400 @@ -1,87 +1,29 @@ - - - - - - - - - - - - - hg-prompt » - hg-prompt - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - -

    hg-prompt

    + + + + + hg-prompt + + + + + +
    +

    hg-prompt

    +
    +

    hg-prompt

    hg-prompt is a Mercurial extension that adds an 'hg prompt' command to -Mercurial for viewing repository information. It's designed to be used in a -shell prompt.

    -

    Installation

    -

    Quick Start

    -

    Full Documentation

    -

    Code

    -

    Screenshot

    -

    My bash prompt while using hg-prompt.

    - - - - -
    - - - - - - - \ No newline at end of file +Mercurial for viewing repository information. It's designed to be used in +a shell prompt.

    + +

    My bash prompt while using hg-prompt.

    Table of Contents

    1. Installation
    2. Quick Start
    3. Documentation
    +
    + +
    + + diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/installation/index.html --- a/hg-prompt/installation/index.html Sat Jul 18 12:35:26 2020 -0400 +++ b/hg-prompt/installation/index.html Sun Jul 19 11:35:39 2020 -0400 @@ -1,102 +1,40 @@ - - - - - - - - - - - - - hg-prompt » - Installation - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - -

    Installation

    -

    Installing hg-prompt requires Python 2.5+ and (obviously) Mercurial.

    + + + + + Installation / hg-prompt + + + + + +
    +

    hg-prompt

    +
    +

    Installation

    Installing hg-prompt requires Python 2.5+ and (obviously) Mercurial.

    First, clone the repository:

    -
    $ hg clone http://bitbucket.org/sjl/hg-prompt/
    +
    $ hg clone http://bitbucket.org/sjl/hg-prompt/
     

    Edit the [extensions] section in your ~/.hgrc file:

    -
    [extensions]
    +
    [extensions]
     prompt = (path to)/prompt.py
     

    Make sure everything is working:

    -
    $ hg prompt 'test'
    -test
    +
    $ hg prompt 'test'
    +test
     

    Take a look at the Quick Start guide to learn how to put some useful information into your shell prompt.

    - - - - -
    - - - - - - +
    + +
    + \ No newline at end of file diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/installation/list.html --- a/hg-prompt/installation/list.html Sat Jul 18 12:35:26 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,94 +0,0 @@ - - - - - - - - - - - - - hg-prompt » - ls /installation - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - -

    ls /installation

    - - - - - - - - - - - -
    - - - - - - - \ No newline at end of file diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/list.html --- a/hg-prompt/list.html Sat Jul 18 12:35:26 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,128 +0,0 @@ - - - - - - - - - - - - - hg-prompt » - ls / - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - -

    ls /

    - - -

    Directories

    - - - - - - - - - - - - - - - - - - - -
    - - documentation/ - -
    - - installation/ - -
    - - media/ - -
    - - quickstart/ - -
    - - - - - - - - - - -
    - - - - - - - \ No newline at end of file diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/media/css/index.html --- a/hg-prompt/media/css/index.html Sat Jul 18 12:35:26 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,140 +0,0 @@ - - - - - - - - - - - - - hg-prompt » - ls /media/css - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - -

    ls /media/css

    - - - - - - -

    Files

    - - - - - - - - - - - - - - - - - - - - - - - -
    3K - - layout.css - -
    3K - - pygments.css - -
    940B - - reset.css - -
    1K - - typography.css - -
    - - - - - - -
    - - - - - - - \ No newline at end of file diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/media/css/layout.css --- a/hg-prompt/media/css/layout.css Sat Jul 18 12:35:26 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,182 +0,0 @@ -/* @override http://localhost:8008/media/css/layout.css */ -body, html { - background-color: #226F89; - margin: 0; - padding: 0; -} - -div#breadcrumbs { - border-bottom: 4px dashed #265565; - border-right: 1px solid #265565; - padding: 0em 1.5em; - background-color: #fff; - width: 55em; - margin: 0em 0em 0em -1.5em; -} -div#breadcrumbs p { - margin: 0.5em auto; -} -div#content { - background-color: #fff; - height: 100%; - margin: 0 auto 3em; - overflow: hidden; - padding: 0em 1.5em 0em 1.5em; - width: 55em; - border-left: 1px solid #265565; - border-right: 1px solid #265565; -} - -h1 { - margin: 0.3em 0; - padding: 0.1em 0; -} -h2, h3, h4, h5, h6 { - margin-top: 1em; - margin-bottom: 0.4em; -} -p, ul, blockquote { - line-height: 1.8em; - margin-top: 0; - margin-bottom: 1em; -} -a { - color: #133C4C; -} -a:hover { - color: #F14800; -} - -p#footer { - background-color: #fff; - border-top: 4px dashed #265565; - width: 55em; - padding: 0.75em 1.5em; - text-align: center; - color: #666; - margin-left: -1.5em; - margin-bottom: 0em; -} - -ul { - padding-left: 1.5em; -} -ul li { - list-style-type: disc; - margin-left: 1.5em; - margin-top: 0.4em; -} - -div.toc ul { - padding: 0; -} -div.toc ul li { - list-style-type: none; - margin: 0; -} -div.toc > ul > li { - list-style-type: none; - margin: 0; -} -div.toc > ul ul { - margin: 0 3em; -} - -code { - background-color: #f6f6f6; - border: 1px solid #999; - padding: 2px; - white-space: nowrap; -} -pre code { - border: none; - padding: 0; - background: none; - white-space: pre-wrap; -} -a code { - background: none; - border: none; - margin: 0; - padding: 0; - text-decoration: inherit; -} -a.code { - background-color: #3f3f3f; -} - -dt { - font-weight: bold; - margin-top: 1em; -} -dd { - line-height: 1.8em; - margin-left: 1.5em; -} -blockquote p { - margin: 0; -} - -img { - background-color: #f6f6f6; - border: 1px solid #999; - padding: 1em; - display: block; - margin: 0 auto; -} - -table { - margin: 1em; -} -table thead { - background-color: #f6f6f6; -} -table thead th { - border: 1px solid #999; - padding: 0.5em 1em; -} -table tbody tr td { - border: 1px solid #999; - padding: 0.5em 1em; -} - -pre, blockquote, table.codehilitetable { - background-color: #f6f6f6; - border: 1px solid #999; - display: block; - line-height: 1.5em; - margin-left: 1.5em; - margin-right: 1.5em; - padding: 0.5em; - padding-left: 1em; -} -pre, table.codehilitetable { - margin-bottom: 1em; -} -table.codehilitetable div.linenodiv { - border-right: 1px solid #ccc; - margin-right: 1em; - padding-right: 1em; -} -table.codehilitetable pre { - background: none; - border: none; - margin: 0; - padding: 0; -} - -table#pages tr, table#subdirs tr, table#files tr { - border-top: 1px solid #999; - border-bottom: 1px solid #999; -} -table tr td.name a { - display: block; - padding: 0.5em 1em; -} -table tr td.name a:hover { - background-color: #f6f6f6; -} -table tr td.size { - padding: 0.5em 1em; - width: 40px; -} diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/media/css/list.html --- a/hg-prompt/media/css/list.html Sat Jul 18 12:35:26 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,140 +0,0 @@ - - - - - - - - - - - - - hg-prompt » - ls /media/css - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - -

    ls /media/css

    - - - - - - -

    Files

    - - - - - - - - - - - - - - - - - - - - - - - -
    3K - - layout.css - -
    3K - - pygments.css - -
    940B - - reset.css - -
    1K - - typography.css - -
    - - - - - - -
    - - - - - - - \ No newline at end of file diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/media/css/pygments.css --- a/hg-prompt/media/css/pygments.css Sat Jul 18 12:35:26 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,61 +0,0 @@ -.hll { background-color: #ffffcc } -.c { color: #808080 } /* Comment */ -.err { color: #F00000; background-color: #F0A0A0 } /* Error */ -.k { color: #008000; font-weight: bold } /* Keyword */ -.o { color: #303030 } /* Operator */ -.cm { color: #808080 } /* Comment.Multiline */ -.cp { color: #507090 } /* Comment.Preproc */ -.c1 { color: #808080 } /* Comment.Single */ -.cs { color: #cc0000; font-weight: bold } /* Comment.Special */ -.gd { color: #A00000 } /* Generic.Deleted */ -.ge { font-style: italic } /* Generic.Emph */ -.gr { color: #FF0000 } /* Generic.Error */ -.gh { color: #000080; font-weight: bold } /* Generic.Heading */ -.gi { color: #00A000 } /* Generic.Inserted */ -.go { color: #808080 } /* Generic.Output */ -.gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */ -.gs { font-weight: bold } /* Generic.Strong */ -.gu { color: #800080; font-weight: bold } /* Generic.Subheading */ -.gt { color: #0040D0 } /* Generic.Traceback */ -.kc { color: #008000; font-weight: bold } /* Keyword.Constant */ -.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ -.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ -.kp { color: #003080; font-weight: bold } /* Keyword.Pseudo */ -.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ -.kt { color: #303090; font-weight: bold } /* Keyword.Type */ -.m { color: #6000E0; font-weight: bold } /* Literal.Number */ -.s { background-color: #fff0f0 } /* Literal.String */ -.na { color: #0000C0 } /* Name.Attribute */ -.nb { color: #007020 } /* Name.Builtin */ -.nc { color: #B00060; font-weight: bold } /* Name.Class */ -.no { color: #003060; font-weight: bold } /* Name.Constant */ -.nd { color: #505050; font-weight: bold } /* Name.Decorator */ -.ni { color: #800000; font-weight: bold } /* Name.Entity */ -.ne { color: #F00000; font-weight: bold } /* Name.Exception */ -.nf { color: #0060B0; font-weight: bold } /* Name.Function */ -.nl { color: #907000; font-weight: bold } /* Name.Label */ -.nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */ -.nt { color: #007000 } /* Name.Tag */ -.nv { color: #906030 } /* Name.Variable */ -.ow { color: #000000; font-weight: bold } /* Operator.Word */ -.w { color: #bbbbbb } /* Text.Whitespace */ -.mf { color: #6000E0; font-weight: bold } /* Literal.Number.Float */ -.mh { color: #005080; font-weight: bold } /* Literal.Number.Hex */ -.mi { color: #0000D0; font-weight: bold } /* Literal.Number.Integer */ -.mo { color: #4000E0; font-weight: bold } /* Literal.Number.Oct */ -.sb { background-color: #fff0f0 } /* Literal.String.Backtick */ -.sc { color: #0040D0 } /* Literal.String.Char */ -.sd { color: #D04020 } /* Literal.String.Doc */ -.s2 { background-color: #fff0f0 } /* Literal.String.Double */ -.se { color: #606060; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */ -.sh { background-color: #fff0f0 } /* Literal.String.Heredoc */ -.si { background-color: #e0e0e0 } /* Literal.String.Interpol */ -.sx { color: #D02000; background-color: #fff0f0 } /* Literal.String.Other */ -.sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */ -.s1 { background-color: #fff0f0 } /* Literal.String.Single */ -.ss { color: #A06000 } /* Literal.String.Symbol */ -.bp { color: #007020 } /* Name.Builtin.Pseudo */ -.vc { color: #306090 } /* Name.Variable.Class */ -.vg { color: #d07000; font-weight: bold } /* Name.Variable.Global */ -.vi { color: #3030B0 } /* Name.Variable.Instance */ -.il { color: #0000D0; font-weight: bold } /* Literal.Number.Integer.Long */ diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/media/css/reset.css --- a/hg-prompt/media/css/reset.css Sat Jul 18 12:35:26 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -/* -Copyright (c) 2009, Yahoo! Inc. All rights reserved. -Code licensed under the BSD License: -http://developer.yahoo.net/yui/license.txt -version: 2.7.0 -*/ -html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}del,ins{text-decoration:none;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:baseline;}sub{vertical-align:baseline;}legend{color:#000;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;} \ No newline at end of file diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/media/css/typography.css --- a/hg-prompt/media/css/typography.css Sat Jul 18 12:35:26 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,86 +0,0 @@ -html { - font-family: "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif; - font-size: 10pt; -} - -h1, h2, h3, h4, h5, h6 { - font-weight: bold; -} - -h1 { - font-size: 2em; -} - -h2 { - font-size: 1.6em; -} - -h3 { - font-size: 1.3em; -} - -h4 { - font-size: 1.1em; - font-weight: bold; -} - -em { - font-style: italic; -} - -strong { - font-weight: bold; -} - -a { - font-weight: bold; - text-decoration: none; -} - -table#files a:hover, table#subdirs a:hover, table#pages a:hover { - color: #a00000; -} - -p#footer a { - text-decoration: none; -} - -p code, ul code, ol code, dl code, blockquote code, tbody code, thead code { - font-size: 8pt; -} - -pre, code, tt, table#subdirs tr td.name, table#files tr td.name, table tr td.size { - font-family: Monaco, "DejaVu Sans Mono", "Bitstream Vera Sans Mono", Menlo, Inconsolata, Consolas, "Courier New", Courier; -} - -table#subdirs code, table#files code { - font-size: 10pt; -} - -table.codehilitetable div.linenodiv { - color: #777; -} - -blockquote { - color: #222; - font-style: italic; -} - -pre { - overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */ - white-space: pre-wrap; /* css-3 */ - white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */ - white-space: -pre-wrap; /* Opera 4-6 */ - white-space: -o-pre-wrap; /* Opera 7 */ - /* width: 99%; */ - word-wrap: break-word; /* Internet Explorer 5.5+ */ -} - -table thead th { - font-weight: bold; -} - -.list-crumb { - color: #777; - font-variant: italic; -} \ No newline at end of file diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/media/index.html --- a/hg-prompt/media/index.html Sat Jul 18 12:35:26 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,108 +0,0 @@ - - - - - - - - - - - - - hg-prompt » - ls /media - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - -

    ls /media

    - - -

    Directories

    - - - - - - - -
    - - css/ - -
    - - - - - - - - - - -
    - - - - - - - \ No newline at end of file diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/media/list.html --- a/hg-prompt/media/list.html Sat Jul 18 12:35:26 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,108 +0,0 @@ - - - - - - - - - - - - - hg-prompt » - ls /media - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - -

    ls /media

    - - -

    Directories

    - - - - - - - -
    - - css/ - -
    - - - - - - - - - - -
    - - - - - - - \ No newline at end of file diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/quickstart/index.html --- a/hg-prompt/quickstart/index.html Sat Jul 18 12:35:26 2020 -0400 +++ b/hg-prompt/quickstart/index.html Sun Jul 19 11:35:39 2020 -0400 @@ -1,123 +1,67 @@ - - - - - - - - - - - - - hg-prompt » - Quick Start - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - -

    Quick Start

    -

    This guide will get you up and running so you can put some useful information + + + + + Quick Start / hg-prompt + + + + + +

    +

    hg-prompt

    +
    +

    Quick Start

    This guide will get you up and running so you can put some useful information into your shell prompt.

    If you haven't already installed it, do that now.

    +

    A Simple (But Useful) Prompt

    Edit your ~/.bashrc file to include something like this:

    -
    hg_ps1() {
    -    hg prompt "{ on {branch}}{ at {bookmark}}{status}" 2> /dev/null
    -}
    +
    hg_ps1() {
    +    hg prompt "{ on {branch}}{ at {bookmark}}{status}" 2> /dev/null
    +}
     
    -export PS1='\u at \h in \w$(hg_ps1)\n$ '
    +export PS1='\u at \h in \w$(hg_ps1)\n$ '
     

    source ~/.bashrc after to test it out. Make sure you're in a Mercurial repository or you won't see anything. This little prompt will give you something like this:

    -
    steve at myhost in ~/src/hg-prompt on default at feature-bookmark?
    -$
    +
    steve at myhost in ~/src/hg-prompt on default at feature-bookmark?
    +$
     

    An Advanced Prompt

    How about something a little more interesting?

    -
    hg_ps1() {
    -    hg prompt "{[+{incoming|count}]-->}{root|basename}{/{branch}}{-->[+{outgoing|count}]}{ at {bookmark}}{status}" 2> /dev/null
    -}
    +
    hg_ps1() {
    +    hg prompt "{[+{incoming|count}]-->}{root|basename}{/{branch}}{-->[+{outgoing|count}]}{ at {bookmark}}{status}" 2> /dev/null
    +}
     
    -export PS1='$(hg_ps1)\n\u at \h in \w\n$ '
    +export PS1='$(hg_ps1)\n\u at \h in \w\n$ '
     

    And the result (this example assumes one incoming changeset and two outgoing):

    -
    [+1]-->hg-prompt/default-->[+2] at feature-bookmark
    -steve at myhost in ~/src/hg-prompt
    -$
    +
    [+1]-->hg-prompt/default-->[+2] at feature-bookmark
    +steve at myhost in ~/src/hg-prompt
    +$
     

    Learn More

    -

    From here you can take a look at the full documentation to see all the +

    From here you can take a look at the full documentation to see all the interesting things hg-prompt can do.

    - - - - -
    - - - - - - +
    + +
    + \ No newline at end of file diff -r c535b74d3a2e -r 9419dfa1bff9 hg-prompt/quickstart/list.html --- a/hg-prompt/quickstart/list.html Sat Jul 18 12:35:26 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,94 +0,0 @@ - - - - - - - - - - - - - hg-prompt » - ls /quickstart - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - -

    ls /quickstart

    - - - - - - - - - - - -
    - - - - - - - \ No newline at end of file