Block push in gerrit code review if working copy not updated

31 views
Skip to first unread message

Akshya Nachu

unread,
Apr 4, 2017, 10:44:38 PM4/4/17
to Repo and Gerrit Discussion
Hi Team,

Currently we have Gerrit 2.13.2 setup. Is there any way to block push to gerrit code review in case if the working copy is not updated?

Regards,
Nachu

Saša Živkov

unread,
Apr 5, 2017, 4:03:15 AM4/5/17
to Akshya Nachu, Repo and Gerrit Discussion
On Wed, Apr 5, 2017 at 4:23 AM, Akshya Nachu <akshya...@gmail.com> wrote:
Hi Team,

Currently we have Gerrit 2.13.2 setup. Is there any way to block push to gerrit code review in case if the working copy is not updated?
Not with Gerrit means. You may try to script something on the client side.
However, even if you enforce this policy, the pushed change will again get outdated as soon as another change is submitted.

Maybe you want to use the "Fast Forward Only" submit type.


Regards,
Nachu

--
--
To unsubscribe, email repo-discuss+unsubscribe@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David Pursehouse

unread,
Apr 5, 2017, 4:17:45 AM4/5/17
to Akshya Nachu, Repo and Gerrit Discussion
On Wed, Apr 5, 2017 at 11:44 AM Akshya Nachu <akshya...@gmail.com> wrote:
Hi Team,

Currently we have Gerrit 2.13.2 setup. Is there any way to block push to gerrit code review in case if the working copy is not updated?

The same question was asked and answered [1] earlier this week.


 

Regards,
Nachu

--
--
To unsubscribe, email repo-discuss...@googlegroups.com

More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.

Akshya Nachu

unread,
Apr 6, 2017, 9:51:42 PM4/6/17
to Repo and Gerrit Discussion, akshya...@gmail.com
Hi Zivkov,

Thank you for this info.

Regards,
Akshaya


On Wednesday, April 5, 2017 at 1:33:15 PM UTC+5:30, zivkov wrote:
On Wed, Apr 5, 2017 at 4:23 AM, Akshya Nachu <akshya...@gmail.com> wrote:
Hi Team,

Currently we have Gerrit 2.13.2 setup. Is there any way to block push to gerrit code review in case if the working copy is not updated?
Not with Gerrit means. You may try to script something on the client side.
However, even if you enforce this policy, the pushed change will again get outdated as soon as another change is submitted.

Maybe you want to use the "Fast Forward Only" submit type.


Regards,
Nachu

--
--
To unsubscribe, email repo-discuss...@googlegroups.com

More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.

Akshya Nachu

unread,
Apr 6, 2017, 9:52:04 PM4/6/17
to Repo and Gerrit Discussion, akshya...@gmail.com
Hi David,


Thank you for this info.

Regards,
Akshaya

Reply all
Reply to author
Forward
0 new messages