Record(String name, int op, int status) {
            if (name == null || name.trim().equals("")) {
                throw new IllegalArgumentException("Bad name.");
            }
            if (op < OP_ADDED || op > OP_MODIFIED) {
                throw new IllegalArgumentException("Bad op.");
            }
            if (status < LOCALLY_MODIFIED || status > REBASE) {
                throw new IllegalArgumentException("Bad status.");
            }
            mName = name;
            mDiffOp = op;
            mStatus = status;
        }