Fix comparison of empty revision with last one

revision can be None and so can not be compared to a datetime
(grafted from cfbc1c13f76252f7c1ef1718c837e9e423ed29d4)

--HG--
branch : 3.4
extra : source : cfbc1c13f76252f7c1ef1718c837e9e423ed29d4
Clear entry when combobox is set to inactive item

GTK doesn't clear the entry when calling set_active with -1.

issue4298
review13691002
(grafted from 736b752de550dd76233e7a1b25b28c2ef1a02c48)

--HG--
branch : 3.4
extra : source : 736b752de550dd76233e7a1b25b28c2ef1a02c48
get_focus_chain can return None

issue4318
review5721002
(grafted from 8f5d9acf912bc3578257f35b286f71ae39a011d9)

--HG--
branch : 3.4
extra : source : 8f5d9acf912bc3578257f35b286f71ae39a011d9
Use the parent children for prefetching only works for same model

otherwise it must use the direct group

issue4319
review5721003
(grafted from c658e4681c643d62a44912e09c3a05927463c870)

--HG--
branch : 3.4
extra : source : c658e4681c643d62a44912e09c3a05927463c870