mercurial/crecord.py
changeset 24492 efa094701a05
parent 24425 3a4122bb9488
child 24779 23727465ff72
--- a/mercurial/crecord.py	Sat Mar 28 00:08:26 2015 -0500
+++ b/mercurial/crecord.py	Fri Mar 27 14:11:13 2015 -0700
@@ -753,17 +753,12 @@
         if isinstance(item, uiheader):
             item.partial = False
             if item.applied:
-                if not item.special():
-                    # apply all its hunks
-                    for hnk in item.hunks:
-                        hnk.applied = True
-                        # apply all their hunklines
-                        for hunkline in hnk.changedlines:
-                            hunkline.applied = True
-                else:
-                    # all children are off (but the header is on)
-                    if len(item.allchildren()) > 0:
-                        item.partial = True
+                # apply all its hunks
+                for hnk in item.hunks:
+                    hnk.applied = True
+                    # apply all their hunklines
+                    for hunkline in hnk.changedlines:
+                        hunkline.applied = True
             else:
                 # un-apply all its hunks
                 for hnk in item.hunks: