Commits

Christian Ebert committed 2f15ce6

Catch AttributeError instead of TypeError

  • Participants
  • Parent commits 7aac3af

Comments (0)

Files changed (1)

internalpatch-compat.diff

 # User Christian Ebert <blacktrash@gmx.net>
 # Date 1305667757 -7200
 # Node ID bf04eabc9a1e2e0b0598bf9154d3147638b19235
-# Parent  5618ae4accb4f7ad9d311ae444b3f796f0f69741
+# Parent 5618ae4accb4f7ad9d311ae444b3f796f0f69741
 Stay compatible from 00a881581400 onwards
 
 changeset:   14260:00a881581400
                                              eolmode=None)
 -                    except TypeError:  # backwards compatilibity with hg 1.1
 -                        patch.internalpatch(fp, ui, 1, repo.root, files=pfiles)
-+                    except TypeError:  # before 00a881581400
++                    except AttributeError:  # before 00a881581400
 +                        try:
 +                            patch.internalpatch(fp, ui, 1, repo.root, files=pfiles,
 +                                                eolmode=None)