scmutil: introduce function to check whether repo uses treemanifest or not
In an upcoming patch, I wanted to check whether current repo uses treemanifest or not. I looked for a function and found that at all places we manually check for the requirement in repo requirements. I guess having a dedicated function for that is much better. Differential Revision: https://phab.mercurial-scm.org/D8981
Showing
- hgext/narrow/narrowbundle2.py 2 additions, 2 deletionshgext/narrow/narrowbundle2.py
- hgext/remotefilelog/remotefilelogserver.py 2 additions, 2 deletionshgext/remotefilelog/remotefilelogserver.py
- mercurial/bundle2.py 2 additions, 5 deletionsmercurial/bundle2.py
- mercurial/changegroup.py 4 additions, 5 deletionsmercurial/changegroup.py
- mercurial/cmdutil.py 1 addition, 2 deletionsmercurial/cmdutil.py
- mercurial/exchange.py 2 additions, 2 deletionsmercurial/exchange.py
- mercurial/repair.py 2 additions, 1 deletionmercurial/repair.py
- mercurial/scmutil.py 5 additions, 0 deletionsmercurial/scmutil.py
Loading
Please register or sign in to comment