An expression of mild surprise.
Sailors’ breeches ending just below the knees or above the ankles, worn mainly in XVIII century.