return false;
}
+// FIXME This could be implemented with cache from scanMaster
+string RCS::revisionInfo(LyXVC::RevisionInfo const)
+{
+ return string();
+}
+
/////////////////////////////////////////////////////////////////////
//
return false;
}
+
+string CVS::revisionInfo(LyXVC::RevisionInfo const)
+{
+ return string();
+}
+
+
/////////////////////////////////////////////////////////////////////
//
// SVN
}
-string SVN::getFileRevisionInfo(){
+string SVN::revisionInfo(LyXVC::RevisionInfo const info)
+{
+ switch (info) {
+ case LyXVC::File:
+ if (rev_file_cache_.empty())
+ rev_file_cache_ = getFileRevisionInfo();
+ if (rev_file_cache_.empty())
+ rev_file_cache_ = "?";
+ if (rev_file_cache_ == "?")
+ return string();
+
+ return rev_file_cache_;
+ }
+ return string();
+}
+
+
+std::string SVN::getFileRevisionInfo()
+{
FileName tmpf = FileName::tempName("lyxvcout");
doVCCommand("svn info --xml " + quoteName(onlyFilename(owner_->absFileName()))
c = true;
if (c && prefixIs(line, " revision=\"") && suffixIs(line, "\">")) {
string l1 = subst(line, "revision=\"", "");
- string l2 = subst(l1, "\">", "");
+ string l2 = trim(subst(l1, "\">", ""));
if (isStrInt(l2))
rev = l2;
}