On Monday, August 13, 2012 at 07:19 EDT,
Chandramouli Kollipara <
chandr...@valyoo.in> wrote:
> Sorry here is the problem.
>
> -- One of the developers pushed a merge commit.
> -- Commit was verified and the patch was submitted but the status of the
> commit says "*submitted but not merged*".
[...]
> -- I tried to resolve this error "*Depends on patch set 1 of Idfbf027b,
> however the current patch set is 2"* by trying to make patchset 1 the
> current patch set.This is the procedure I followed.
>
> - I did a *checkout of a patch 1* ,did an amend of patch set 1 and
> committed it.
> - I merged the new branch on to master branch and pushed it to gerrit.
> - Verfied and submitted it.
>
> Even after doing this my problem is not resolved.
If a change has a dependency to an obsolete patch set, the only way to
solve it is to rebase your change. Short if mucking around in the Gerrit
database, there is no way to recover patch set 1 of a change if there
already is a patch set 2. The dependency in your change is to the exact
commit of patch set 1. Short of submitting that exact commit, the
dependency will persist.
Now, since your change is a merge commit your best bet would be to redo
the merge onto the tip of the branch (or onto the most recent patch set
of an open change, but as you've already discovered this complicates
matters). Or, as I suggested earlier, chances are the merge commit
shouldn't be a merge commit in the first place.
--
Magnus Bäck
ba...@google.com