[server] Fix a bug of showing deleted files when all history are kept.

Should convert commit->ctime to gint64 before comparing it with -1.