scmutil: add bad character checking to checknewlabel
This factors out the checks from tags and bookmarks, and newly applies the same prohibitions to branches. checknewlabel takes a new parameter, kind, indicating the kind of label being checked. Test coverage is added for all three types of labels.
Showing
- mercurial/commands.py 2 additions, 6 deletionsmercurial/commands.py
- mercurial/dirstate.py 1 addition, 1 deletionmercurial/dirstate.py
- mercurial/localrepo.py 0 additions, 8 deletionsmercurial/localrepo.py
- mercurial/scmutil.py 5 additions, 1 deletionmercurial/scmutil.py
- tests/test-bookmarks.t 6 additions, 1 deletiontests/test-bookmarks.t
- tests/test-branches.t 13 additions, 0 deletionstests/test-branches.t
Loading
Please register or sign in to comment