Edinburgh knew that the Gleneagles G8 Summit, at which debt relief was to be a defining issue, meant Edinburgh being the focus of demonstrations and marches the like of which Scotland had never seen.