fix LinkRevSpec, make it cope with multiple branches in filelogs