[Bug 5252] New: If multiple extensions register the same parthandler an obscure traceback results

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Fri May 27 19:21:48 UTC 2016


https://bz.mercurial-scm.org/show_bug.cgi?id=5252

            Bug ID: 5252
           Summary: If multiple extensions register the same parthandler
                    an obscure traceback results
           Product: Mercurial
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: bundle2
          Assignee: bugzilla at selenic.com
          Reporter: durin42 at gmail.com
                CC: mercurial-devel at selenic.com,
                    pierre-yves.david at ens-lyon.org

I accidentally enabled an extension twice under two different names in a test,
and the failure mode seems kind of poor as a user experience:

+    File "[elided]/mercurial/bundle2.py", line 222, in _decorator
+      assert lparttype not in parthandlermapping
+  AssertionError

This should probably:

 1) Be an error.Abort()
 2) At least mention what part was duplicated and provide a hint that duplicate
extensions might be at fault

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list