Add field _number to ChangeInfo

This field is also available in ChangeJson.ChangeInfo.

Change-Id: Iaa4c7c5b1e7c9089a8ad5f30b629fa19e8982279
This commit is contained in:
Urs Wolfer 2014-04-26 13:33:10 +02:00
parent aace15c95a
commit 84e9714e96
3 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,7 @@ public class ChangeIT extends AbstractDaemonTest {
assertEquals(true, c.mergeable);
assertEquals(r.getChangeId(), c.changeId);
assertEquals(c.created, c.updated);
assertEquals(1, c._number);
}
@Test

View File

@ -39,4 +39,5 @@ public class ChangeInfo {
public Map<String, LabelInfo> labels;
public Collection<ChangeMessageInfo> messages;
public Map<String, RevisionInfo> revisions;
public int _number;
}

View File

@ -89,6 +89,7 @@ class ChangeInfoMapper {
o.deletions = i.deletions;
o.owner = fromAcountInfo(i.owner);
o.currentRevision = i.currentRevision;
o._number = i._number;
}
private void mapMessages(ChangeJson.ChangeInfo i, ChangeInfo o) {