Object.subclass('SVNVersionInfo', 'default category', {initialize: function (spec) {
// possible properties of spec:
// rev, date, author, url, change, content
for (var name in spec) {
var val = spec[name];
if (name == 'date') {
if (Object.isString(val)) {
this.date = this.parseUTCDateString(val);
} else if (val instanceof Date) {
this.date = val;
}
} else {
this[name] = val;
}
}
if (!this.author)
this.author = '(no author)';
if (!this.date)
this.date = new Date();
}})