(bug 43291) extend repoApi to support editing existing references

Change-Id: If7ecaf35fdf649e7c041cc1df723d8149b50884c
Merge "(bug 43291) extend repoApi to support editing existing references"