diff repoint.sml @ 2311:186a452dddd3

Bitbucket -> Sourcehut, and subrepo update
author Chris Cannam
date Fri, 30 Aug 2019 11:56:03 +0100
parents a3951575def3
children
line wrap: on
line diff
--- a/repoint.sml	Wed Aug 14 14:56:05 2019 +0100
+++ b/repoint.sml	Fri Aug 30 11:56:03 2019 +0100
@@ -38,7 +38,7 @@
     authorization.
 *)
 
-val repoint_version = "1.1.1"
+val repoint_version = "1.2"
 
 
 datatype vcs =
@@ -329,7 +329,7 @@
                 then arg
                 else "\"" ^ arg ^ "\""
             fun check arg =
-                let val valid = explode " /#:;?,._-{}@=+"
+                let val valid = explode " /#:;?,._-{}@=+%"
                 in
                     app (fn c =>
                             if isAlphaNum c orelse
@@ -1047,6 +1047,13 @@
                 anon = SOME "https://github.com/{owner}/{repository}",
                 auth = SOME "ssh://{vcs}@github.com/{owner}/{repository}"
             }
+          },
+          { service = "sourcehut",
+            supports = [HG, GIT],
+            remote_spec = {
+                anon = SOME "https://{vcs}.sr.ht/%7E{owner}/{repository}",
+                auth = SOME "ssh://{vcs}@{vcs}.sr.ht/%7E{owner}/{repository}"
+            }
           }
         ]