iosCurator
iosCurator

Reputation: 4466

How to reopen a closed "arc diff"?

Our team uses Git for code management & Phabricator's Differential tool, and the command-line tool Arcanist on each developer's machine, to generate nice-looking code-review dashboards. I created a diff D1 and it got successfully closed after being reviewed by my fellow developer. I created another branch from a separate git branch B2. Merged the code from the closed revision D1. When I tried to create a new diff D2 using arc diff, I get the error

Exception ERR_CLOSED: This revision has already been closed.

Is there a way to create a new diff D2.

Upvotes: 4

Views: 6276

Answers (2)

Maciej Łoziński
Maciej Łoziński

Reputation: 885

If somehow you cannot create a new diff, even using arc diff --create, Perhaps you have a saved revision message fom earlier arc diff executions in .git/arc/create-message, with a line that say

Differential Revision: ... (some url)

Try to delete that line, or just an url after the colon. According to this comment and my experience, this can help.

Upvotes: 4

iosCurator
iosCurator

Reputation: 4466

If ignoring the current revision and just creating a new one (D35) fits your workflow, as it does ours, you have to specify that you want to create a new revision:

arc diff --create master

Credit:

http://dcycleproject.org/blog/93/arc-diff-and-errclosed-revision-has-already-been-closed.

Hope this helps mates who are struggling with the same issue.

Upvotes: 2

Related Questions