Code

revision.c: refactor notes ref expansion