mercurial/cmdutil.py
changeset 48116 5ced12cfa41b
parent 48104 e8d6261513b9
child 48118 5105a9975407
equal deleted inserted replaced
48115:b067d22dc6ad 48116:5ced12cfa41b
   985     """Change the branch name of given revs to label"""
   985     """Change the branch name of given revs to label"""
   986 
   986 
   987     with repo.wlock(), repo.lock(), repo.transaction(b'branches'):
   987     with repo.wlock(), repo.lock(), repo.transaction(b'branches'):
   988         # abort in case of uncommitted merge or dirty wdir
   988         # abort in case of uncommitted merge or dirty wdir
   989         bailifchanged(repo)
   989         bailifchanged(repo)
   990         revs = scmutil.revrange(repo, revs)
   990         revs = logcmdutil.revrange(repo, revs)
   991         if not revs:
   991         if not revs:
   992             raise error.InputError(b"empty revision set")
   992             raise error.InputError(b"empty revision set")
   993         roots = repo.revs(b'roots(%ld)', revs)
   993         roots = repo.revs(b'roots(%ld)', revs)
   994         if len(roots) > 1:
   994         if len(roots) > 1:
   995             raise error.InputError(
   995             raise error.InputError(