Skip to content

Add an admin tool to clone a revision between Phabricator instances#236

Merged
La0 merged 2 commits intomozilla:masterfrom
La0:clone-diff
Nov 14, 2019
Merged

Add an admin tool to clone a revision between Phabricator instances#236
La0 merged 2 commits intomozilla:masterfrom
La0:clone-diff

Conversation

@La0
Copy link
Copy Markdown
Collaborator

@La0 La0 commented Nov 14, 2019

I made that to copy any diff from the production instance on the dev instance, so i'm able to test comments & issues reporting without spamming anyone

$ python copy_diff.py 52765
Connected on source: https://phabricator.services.mozilla.com/api/
Connected on destination: https://phabricator-dev.allizom.org/api/
Loading revision 52765
Source revision is on repository mozilla-central
Found matching repository on destination as PHID-REPO-myz5mwsn6hrgkxn2ndos
Loading diffs for PHID-DIFF-alrlnuu3mn4ttmiver6v
Loading raw source diff 191621
Created new diff 2471 - PHID-DIFF-5xhvkrqy54ebrphqnmz5
Set diff properties
New revision created as https://phabricator-dev.allizom.org/D1535

And it worked 🎉

@La0 La0 requested a review from marco-c November 14, 2019 14:46
@La0 La0 self-assigned this Nov 14, 2019
@La0 La0 added the bot Code review bot label Nov 14, 2019
Copy link
Copy Markdown
Collaborator

@marco-c marco-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice idea ;)

@La0 La0 merged commit a799486 into mozilla:master Nov 14, 2019
@La0 La0 deleted the clone-diff branch November 14, 2019 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot Code review bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants