[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-102.8.0esr-12.0-1] Bug 41603: Customize the creation of MOZ_SOURCE_URL



Title: GitLab

Richard Pospesel pushed to branch tor-browser-102.8.0esr-12.0-1 at The Tor Project / Applications / Tor Browser

Commits:

  • f6e9971c
    by Pier Angelo Vendrame at 2023-02-15T18:21:39+00:00
    Bug 41603: Customize the creation of MOZ_SOURCE_URL
    
    MOZ_SOURCE_URL is created by combining MOZ_SOURCE_REPO and
    MOZ_SOURCE_CHANGESET.
    But the code takes for granted that it refers to a Hg instance, so it
    combines them as `$MOZ_SOURCE_REPO/rev/$MOZ_SOURCE_CHANGESET`.
    With this commit, we change this logic to combine them to create a URL
    that is valid for GitLab.
    $MOZ_SOURCE_CHANGESET needs to be a commit hash, not a branch or a tag.
    If that is needed, we could use /-/tree/, instead of /-/commit/.
    

1 changed file:

Changes:

  • build/variables.py
    ... ... @@ -97,7 +97,7 @@ def source_repo_header(output):
    97 97
             output.write("#define MOZ_SOURCE_STAMP %s\n" % changeset)
    
    98 98
     
    
    99 99
         if repo and buildconfig.substs.get("MOZ_INCLUDE_SOURCE_INFO"):
    
    100
    -        source = "%s/rev/%s" % (repo, changeset)
    
    100
    +        source = "%s/-/commit/%s" % (repo, changeset)
    
    101 101
             output.write("#define MOZ_SOURCE_REPO %s\n" % repo)
    
    102 102
             output.write("#define MOZ_SOURCE_URL %s\n" % source)
    
    103 103
     
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits