mercurial/cmdutil.py
changeset 47021 45dcb63f8ead
parent 47012 d55b71393907
child 47072 4c041c71ec01
--- a/mercurial/cmdutil.py	Tue Feb 23 10:28:42 2021 -0800
+++ b/mercurial/cmdutil.py	Tue Apr 27 14:36:52 2021 -0700
@@ -997,11 +997,6 @@
                 _(b"a branch of the same name already exists")
             )
 
-        if repo.revs(b'obsolete() and %ld', revs):
-            raise error.InputError(
-                _(b"cannot change branch of a obsolete changeset")
-            )
-
         # make sure only topological heads
         if repo.revs(b'heads(%ld) - head()', revs):
             raise error.InputError(