[LyX/master] Simplify checking whether files are controlled by SVN and GIT.

Yuriy Skalko yuriy.skalko at gmail.com
Mon Dec 28 13:45:11 UTC 2020


>> > I am sorry not to have a time to follow this thoroughly, but is this
>> > cvs log / git log used only inh "register" case as initially discussed
>> > or you want to use it on every file load?
>> > Calling log could but pretty expensive operation for large archives.
>> 
>> The -n0 flag that Yuriy proposed should take care of that, too. So
>> another reason to go that way.
> 
> 
> I understood that. The minor concern was that it can still take seconds to get
> the first commit touching particular file in larger git repos if its buried
> down in the history.  But maybe it's not that different from git-ls.
> 
> My main concern though were changes to CVS - I haven't seen -n0 equivalent and
> are you positive that cvs log does not actually try to connect to server (would
> make us fail if you are offline)? It's really long time ago I used cvs, but
> IIRC each tracked directory has the needed metadata locally at the place
> so do we actualy need these changes to fulfil the users-list request?
> 
> Sorry for nitpicking, but given that this piece of code is executed at each
> document load we better be super careful here...
> 
> Pavel

Committed "-n 0" for Git. CVS has "-Q" option 
(https://www.gnu.org/software/trans-coord/manual/cvs/html_node/Global-options.html#Global-options) 
that may help too, but I have no CVS installed, so cannot test this.


Yuriy



More information about the lyx-devel mailing list