Mark changes new if a patchset has been added to them

This moves the change out of the SUBMITTED state, as it must
once again be reviewed now that a new patch set has been put
into it.

Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2009-01-08 07:49:05 -08:00
parent 641f57a73c
commit 6eabed418a

View File

@@ -542,6 +542,7 @@ class Receive extends AbstractGitCommand {
}
}
change.setStatus(Change.Status.NEW);
change.setCurrentPatchSet(imp.getPatchSetInfo());
change.updated();
db.changes().update(Collections.singleton(change));