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