Restore deleted CL in Gerrit

314 views
Skip to first unread message

Vishwas Uppoor

unread,
Apr 27, 2022, 3:27:47 PM4/27/22
to Chromium-dev, Vishwas Uppoor
Hi,

I deleted my CL by selecting the "Delete change" button on Gerrit UI. Is there a way to restore it? If not, how do I upload a new change from my local branch? I get "GerritChangeNotExists" when I try to upload a patch.

Thanks!

K. Moon

unread,
Apr 27, 2022, 3:33:29 PM4/27/22
to vishwa...@chromium.org, Chromium-dev, Vishwas Uppoor
You should be able to restore an abandoned change in Gerrit (do you have a link to the issue?), but "git cl issue 0" should clear the association between your local branch and the remote Gerrit issue.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/f746610e-d566-42af-ac90-c57ecf84fa6fn%40chromium.org.

Vishwas Uppoor

unread,
Apr 28, 2022, 12:09:39 AM4/28/22
to Chromium-dev, K. Moon, Chromium-dev, Vishwas Uppoor, Vishwas Uppoor
Hi,  this was a duplicate issue I created because I could not see my original issue. This is resolved, thank you for the answer.

On Wednesday, April 27, 2022 at 3:33:29 PM UTC-4 K. Moon wrote:
You should be able to restore an abandoned change in Gerrit (do you have a link to the issue?), but "git cl issue 0" should clear the association between your local branch and the remote Gerrit issue.

On Wed, Apr 27, 2022 at 12:27 PM Vishwas Uppoor <vishwa...@chromium.org> wrote:
Hi,

I deleted my CL by selecting the "Delete change" button on Gerrit UI. Is there a way to restore it? If not, how do I upload a new change from my local branch? I get "GerritChangeNotExists" when I try to upload a patch.

Thanks!

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.

Alexander Dunaev

unread,
Apr 28, 2022, 12:09:52 AM4/28/22
to chromi...@chromium.org
Hi,
The easiest is creating a new branch and cherry-picking the changes from
the one linked to the deleted CL, and upload a new CL from that branch.
Remove the Gerrit metadata in your commits, if any.
> --
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
> ---
> You received this message because you are subscribed to the Google
> Groups "Chromium-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to chromium-dev...@chromium.org.
> [1].
>
>
> Links:
> ------
> [1] https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/f746610e-d566-42af-ac90-c57ecf84fa6fn%40chromium.org?utm_medium=email&utm_source=footer

--
Regards,
Alex

Vishwas Uppoor

unread,
Apr 28, 2022, 12:42:18 AM4/28/22
to Chromium-dev, adu...@igalia.com
Hi Alex, this is exactly what I ended up doing and it worked.

On Thursday, April 28, 2022 at 12:09:52 AM UTC-4 adu...@igalia.com wrote:
Hi,
The easiest is creating a new branch and cherry-picking the changes from
the one linked to the deleted CL, and upload a new CL from that branch.
Remove the Gerrit metadata in your commits, if any.

El 2022-04-27 17:38, Vishwas Uppoor escribió:
> Hi,
>
> I deleted my CL by selecting the "Delete change" button on Gerrit UI.
> Is there a way to restore it? If not, how do I upload a new change
> from my local branch? I get "GerritChangeNotExists" when I try to
> upload a patch.
>
> Thanks!
>
> --
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
> ---
> You received this message because you are subscribed to the Google
> Groups "Chromium-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send

Christian Biesinger

unread,
Apr 28, 2022, 10:47:41 AM4/28/22
to adu...@igalia.com, chromium-dev
FWIW, "git cl issue 0" removes that metadata for you, so that seems easier.

Christian
> To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/140e41c4a405d1923d794335add3eee3%40igalia.com.
Reply all
Reply to author
Forward
0 new messages