Gerrit Dependency creation

1,602 views
Skip to first unread message

suganesh

unread,
Mar 8, 2012, 11:57:34 PM3/8/12
to Repo and Gerrit Discussion, suga...@sasken.com
Hi All,

Is it possible to create manual dependency between two change-id's in
Gerrit ?


Regards,
Suganesh V

Luciano Carvalho

unread,
Mar 9, 2012, 12:08:31 AM3/9/12
to suganesh, Repo and Gerrit Discussion, suga...@sasken.com
Not currently.

There was something on the pipe, being developed by Mohan Zhang, but I don't know the current work status.
You can check the topic cross-repo-dependencies [1], to see if that's what you're looking for.
I'm not aware of any other initiative towards that.

Regards,

Luciano.



suganesh

unread,
Mar 9, 2012, 12:23:13 AM3/9/12
to Repo and Gerrit Discussion, suga...@saske.com
Thank you.

Let me explain clearly i had 3 old commit's and 4th commit is new one
which is having small piece of code related to 1st commit.

Now i want to create an dependency for 4th commit .( 4th dependents
on 1st) !!.

On Mar 9, 10:08 am, Luciano Carvalho <lscar...@gmail.com> wrote:
> Not currently.
>
> There was something on the pipe, being developed by Mohan Zhang, but I
> don't know the current work status.
> You can check the topic cross-repo-dependencies [1], to see if that's what
> you're looking for.
> I'm not aware of any other initiative towards that.
>
> Regards,
>
> Luciano.
>
> [1]https://gerrit-review.googlesource.com/#/q/topic:cross-repo-dependenc...

Luciano Carvalho

unread,
Mar 9, 2012, 12:38:25 AM3/9/12
to suganesh, Repo and Gerrit Discussion, suga...@saske.com
It seems that you need what Mohan was trying to achieve there.

The idea was to have changes that would be grouped, and you would be able to submit the changes only if all dependencies were merged already.

Something like that. 

Andreas Häber

unread,
Mar 9, 2012, 3:00:17 AM3/9/12
to Luciano Carvalho, suganesh, Repo and Gerrit Discussion, suga...@saske.com
Hi,

Won't it suffice here to simply rebase so that you get the 4th commit on top of one of the older commits? The order depends whether there are any dependencies between the set of 3 old commits. Either rebase the 4th on top of the last of those 3 commits, or on top of the 1st commit if there are no other dependencies involved.

BR, andreas
--
Dr. Andreas Häber
Chief Technology Officer, Red Rock AS
tel: +47 934 56 415

Magnus Bäck

unread,
Mar 9, 2012, 7:21:26 AM3/9/12
to Repo and Gerrit Discussion
On Fri, Mar 9, 2012 at 3:00 AM,
Andreas Häber <andreas...@redrock.no> wrote:

> Won't it suffice here to simply rebase so that you get the 4th commit on top
> of one of the older commits? The order depends whether there are any
> dependencies between the set of 3 old commits. Either rebase the 4th on top
> of the last of those 3 commits, or on top of the 1st commit if there are no
> other dependencies involved.

Yes, that would certainly work. However, it assumes the changes are in
the same git, and it becomes annoying if the change you depend on gets
another patch set. Then you'll have to fetch that patch set and do a
"rebase --onto" or similar, and upload a new patch set to your change.
You (currently) won't get any help from the tools with this task.

--
Magnus Bäck
ba...@google.com

Reply all
Reply to author
Forward
0 new messages