Heat the oil in a heavy frying-pan and add the tomatoes, sugar, garlic and herbs. Cook over a moderate heat, stirring until the tomato juices have evaporated. Remove and discard the garlic and season the tomatoes.
Meanwhile lightly whisk the eggs, and season. Pour the eggs over the tomatoes, lower the heat and cook very gently, stirring constantly with a wooden spoon until the eggs have