mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
Better debugging
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35311 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8ae629fd68
commit
8f457065c5
@ -312,7 +312,7 @@ bool RCS::prepareFileRevision(string const &revis, string & f)
|
||||
}
|
||||
}
|
||||
|
||||
FileName tmpf = FileName::tempName("lyxvcrev");
|
||||
FileName tmpf = FileName::tempName("lyxvcrev_" + rev + "_");
|
||||
if (tmpf.empty()) {
|
||||
LYXERR(Debug::LYXVC, "Could not generate logfile " << tmpf);
|
||||
return N_("Error: Could not generate logfile.");
|
||||
@ -1058,13 +1058,14 @@ bool SVN::prepareFileRevision(string const & revis, string & f)
|
||||
return false;
|
||||
}
|
||||
|
||||
FileName tmpf = FileName::tempName("lyxvcrev");
|
||||
string revname = convert<string>(rev);
|
||||
FileName tmpf = FileName::tempName("lyxvcrev_" + revname + "_");
|
||||
if (tmpf.empty()) {
|
||||
LYXERR(Debug::LYXVC, "Could not generate logfile " << tmpf);
|
||||
return N_("Error: Could not generate logfile.");
|
||||
}
|
||||
|
||||
doVCCommand("svn cat -r " + convert<string>(rev) + " "
|
||||
doVCCommand("svn cat -r " + revname + " "
|
||||
+ quoteName(onlyFileName(owner_->absFileName()))
|
||||
+ " > " + quoteName(tmpf.toFilesystemEncoding()),
|
||||
FileName(owner_->filePath()));
|
||||
|
@ -2686,6 +2686,9 @@ void GuiView::dispatchVC(FuncRequest const & cmd)
|
||||
if (!buffer->lyxvc().prepareFileRevision(rev2, f2))
|
||||
break;
|
||||
}
|
||||
|
||||
LYXERR(Debug::LYXVC, "Launching comparison for fetched revisions: " <<
|
||||
f1 << "\n" << f2 << "\n" );
|
||||
string par = "compare run " + f1 + " " + f2;
|
||||
lyx::dispatch(FuncRequest(LFUN_DIALOG_SHOW, par));
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user