mercurial/__main__.py
author Pierre-Yves David <pierre-yves.david@octobus.net>
Thu, 07 Mar 2024 10:55:22 +0100
changeset 51531 f85f23f1479b
parent 50697 e7ef11b75fdc
permissions -rw-r--r--
branchcache: skip entries that are topological heads in the on disk file In the majority of cases, topological heads are also branch heads. We have efficient way to get the topological heads and efficient way to retrieve their branch information. So there is little value in putting them in the branch cache file explicitly. On the contrary, writing them explicitly tend to create very large cache file that are inefficient to read and update. So the branch cache v3 format is no longer including them. This changeset focus on the format aspect and have no focus on the performance aspect. We will cover that later.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
50697
e7ef11b75fdc library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents: 50696
diff changeset
     1
def run():
e7ef11b75fdc library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents: 50696
diff changeset
     2
    from . import demandimport
e7ef11b75fdc library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents: 50696
diff changeset
     3
e7ef11b75fdc library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents: 50696
diff changeset
     4
    with demandimport.tracing.log('hg script'):
e7ef11b75fdc library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents: 50696
diff changeset
     5
        demandimport.enable()
e7ef11b75fdc library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents: 50696
diff changeset
     6
        from . import dispatch
e7ef11b75fdc library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents: 50696
diff changeset
     7
e7ef11b75fdc library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents: 50696
diff changeset
     8
        dispatch.run()
e7ef11b75fdc library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents: 50696
diff changeset
     9
e7ef11b75fdc library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents: 50696
diff changeset
    10
50696
eb01d3a65ad8 library: enable runpy invocation on mercurial package
Jason R. Coombs <jaraco@jaraco.com>
parents:
diff changeset
    11
if __name__ == '__main__':
50697
e7ef11b75fdc library: incorporate demandimport into runpy invocation
Jason R. Coombs <jaraco@jaraco.com>
parents: 50696
diff changeset
    12
    run()