Mayor Rob Ford urged a judge to free a convicted drug dealer who had threatened to kill the mayor after bursting into his home, theToronto Sunhas learned.

The mayor and his sister Kathy Ford "are generous and forgiving in not wanting (her ex-boyfriend) Scott MacIntyre to go to jail," stated Justice Paul French at the sentencing hearing on June 12, 2012.

The comment is contained in a court transcript of the proceeding.

TheToronto Sun initially obtained court documents which revealed stunning details about the mayor's frightening run-in MacIntyre. The most recent transcript contains details about MacIntyre's sentencing hearing.

MacIntyre was sentenced in June 2012 to five months in addition to time already served for uttering death threats, possession and attempting to break a court order. He has since been released.

At the hearing, MacIntyre's lawyer Sam Boutzouvis said the mayor "does not fear" MacIntyre but still wanted him barred from within 500 metres of Ford's address or any location where the mayor is likely to be.

Kathy Ford wanted to have further contact and communication with the 45-year-old addict "with a written revocable consent," so that she could assist with his drug counselling.

But French dismissed the scheme, saying it was "simply a prescription for disaster," because it combined two people with addiction issues.

"You owe me money," MacIntyre screamed at Rob Ford, after bursting into the mayor's unlocked home and later threatening to kill the civic leader on Jan. 11, 2012.

A strung-out MacIntyre "didn't attend (the home) to menace (Rob) Ford in any way," said Boutzouvis in court. "It was meant to get a message to Kathy and it deteriorated from there."

MacIntyre came close to Ford, screaming, "You owe me money and your sister owes me money. If I don't get it, they will kill me," said French.

"You and your family are going to get it; you are going to pay for it."

The heated argument "almost came to physical violence," said French.

The incident arose "because of the money that MacIntyre felt was being squandered that Kathy owed," said Boutzouvis.

The court documents reveal surprising new details about the sentencing of the addict who once had close ties to the Ford family.

MacIntyre has racked up drug offences, starting 28 years ago. He was busted with heroin and cocaine within hours of his confrontation with the mayor.

MacIntyre suffered "jailhouse justice" on March 22 while at Metro West Detention Centre when inmates viciously attacked and beat him, breaking his right leg and knocking out some of his teeth, said French. It was expected it would take a year for MacIntyre to completely recover from his "catastrophic leg" injury.

Ford's spokesman Sunny Petrujkic did not respond to a request for comment late Monday.