Show More
@@ -997,11 +997,6 def changebranch(ui, repo, revs, label, | |||||
997 | _(b"a branch of the same name already exists") |
|
997 | _(b"a branch of the same name already exists") | |
998 | ) |
|
998 | ) | |
999 |
|
999 | |||
1000 | if repo.revs(b'obsolete() and %ld', revs): |
|
|||
1001 | raise error.InputError( |
|
|||
1002 | _(b"cannot change branch of a obsolete changeset") |
|
|||
1003 | ) |
|
|||
1004 |
|
||||
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( |
General Comments 0
You need to be logged in to leave comments.
Login now