# HG changeset patch # User Mads Kiilerich # Date 1393278133 -3600 # Node ID 24e0661e6c2e2a5a08a34dfc6f183fd00a9e05d4 # Parent 86cefb15e7b5cbb4c6d99a80942d922e998e1a38 parsers: remove unreachable and invalid code in index_ancestors The function normally returns a list. Returning a single element instead of a list with one element would be weird. diff -r 86cefb15e7b5 -r 24e0661e6c2e mercurial/parsers.c --- a/mercurial/parsers.c Thu Feb 13 14:27:12 2014 -0800 +++ b/mercurial/parsers.c Mon Feb 24 22:42:13 2014 +0100 @@ -1529,10 +1529,6 @@ ret = gca; Py_INCREF(gca); } - else if (PyList_GET_SIZE(gca) == 1) { - ret = PyList_GET_ITEM(gca, 0); - Py_INCREF(ret); - } else ret = find_deepest(self, gca); done: