Mercurial > repo
changeset 11469:5a1e15fb9528 draft
<fizzie> sled bin/hurl//s,hackego.esolangs.org/fshg,hack.esolangs.org/repo,g;s,/index\\.cgi,,
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Sun, 08 Apr 2018 18:19:59 +0100 |
parents | ff752d36eb0e |
children | bb65cc75888c |
files | bin/hurl |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/hurl Sun Apr 08 18:18:04 2018 +0100 +++ b/bin/hurl Sun Apr 08 18:19:59 2018 +0100 @@ -1,12 +1,12 @@ #!/usr/bin/env python import sys, os.path, re, urllib if len(sys.argv) <= 1: - print "https://hackego.esolangs.org/fshg/" + print "https://hack.esolangs.org/repo/" else: f = os.path.abspath(sys.argv[1]) f = re.sub(r"^/+hackenv/", "", f) if re.match(r"/|(?:\.hg|tmp)(?:/|$)",f): sys.exit("File is outside web-viewable filesystem repository.") else: - print ("https://hackego.esolangs.org/fshg/index.cgi/log/tip/" + + print ("https://hack.esolangs.org/repo/log/tip/" + urllib.quote(f))