Holyrood has called for Brexit to be scrapped if another referendum cannot take place.

MSPs backed a motion lodged by Scottish Greens co-convener Patrick Harvie, insisting the UK should revoke Article 50 in the absence of an extension allowing for a People’s Vote.

In a largely symbolic move, the motion passed by 89 votes to 28, with the Scottish Tories voting against.

It came ahead of MPs voting on a series of alternative Brexit options at Westminster.

Mr Harvie said the UK should be prepared to “revoke and move on”. He said: “As yet, we don’t know what the result will be tonight from the indicative vote process at Westminster.

“We can be fairly sure that it won’t result in a simple, sudden clarity, a sort of first-past-the-post, winner takes all, outcome.

“There will still be choices to make. There will still be uncertainty.

“There will still be the threat, the huge threat, of social, economic and political damage from any form of Brexit, and there will still be those trying to push the country over the cliff edge to deliberately make this crisis even worse.

“Whether a withdrawal agreement is adopted or not, we must see an extension long enough to put it back to the people and if that doesn’t happen, then we must cancel the crisis, revoke and move on.”

Scottish Labour’s Brexit spokesman Neil Findlay described the political situation as a “tragedy”.

He said: “We see a Prime Minister in name only, alone, credibility in tatters.

“The worst holder of that political office since the last holder of that political office.

“Losing vote after vote, minister after minister, every shred of credibility she ever had, making the UK a laughing stock across the world.”

He reiterated his party’s calls for a general election to be held.

“A referendum with a remain option is of course the option we would like to see,” he said.

“For many other reasons – not least the impact of Universal Credit, not least the hostile environment on immigration, or the policies that see poverty and homelessness increase – we also want to see a general election to bring an end to this disastrous government.”

Meanwhile, Scottish Tory constitution spokesman Adam Tomkins urged MPs to back Mrs May’s twice-defeated Brexit deal in order to respect the result of the 2016 vote – and avoid crashing out of the EU without an agreement.

It came as a report by Holyrood’s independent research centre warned barely half the legislation required to patch holes and correct anomalies in Scots law after Brexit is ready.

The minor, or secondary, legislation is required to ensure the statute book still functions once references in it to EU law and EU institutions no longer apply.

The report said only 67 of the 130 statutory instruments that had been due to go before the Scottish Parliament had been made and would definitely come into force on time.

One piece of legislation was not needed, but the remaining 62 had not yet been made.

The report warned that if the if UK left the EU before these statutory instruments are made, “there is a risk the domestic law governing these areas will not work as intended”.

It said the process of ensuring domestic law was fit for purpose would continue after Brexit, with “those areas of law considered most important” prioritised.

It said: “Further primary and secondary legislation will be required to make sure the whole of the Scottish statute book still works effectively following exit from the EU.”