equal
deleted
inserted
replaced
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( |