mercurial/cmdutil.py
changeset 47021 45dcb63f8ead
parent 47012 d55b71393907
child 47072 4c041c71ec01
equal deleted inserted replaced
47020:ba6881c6a178 47021:45dcb63f8ead
   993             and label not in rpb
   993             and label not in rpb
   994             and label in repo.branchmap()
   994             and label in repo.branchmap()
   995         ):
   995         ):
   996             raise error.InputError(
   996             raise error.InputError(
   997                 _(b"a branch of the same name already exists")
   997                 _(b"a branch of the same name already exists")
   998             )
       
   999 
       
  1000         if repo.revs(b'obsolete() and %ld', revs):
       
  1001             raise error.InputError(
       
  1002                 _(b"cannot change branch of a obsolete changeset")
       
  1003             )
   998             )
  1004 
   999 
  1005         # make sure only topological heads
  1000         # make sure only topological heads
  1006         if repo.revs(b'heads(%ld) - head()', revs):
  1001         if repo.revs(b'heads(%ld) - head()', revs):
  1007             raise error.InputError(
  1002             raise error.InputError(