Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Keybinder v2 notes/problems
sodev:
Not sure if i understand your workflow correct, but you checkout a working copy on windows with windows tools, mount that on linux and modify that with linux tools? Now if thats not asking for trouble :o
Anyway, to prevent such eol issues with svn, either make sure you configured the autoprops in your svn client properly or use that server side autoprops feature of newer svn versions (this is specifying autoprops properties in the repository itself). Both will only work with new files beeing added though, for already present files you have to check if for them the eol-style is properly set. If not, adding that property should fix your eol next time you update and will prevent a commit if the files contain mixed eol already.
blauzahn:
sodev wrote:
--- Quote ---Now if thats not asking for trouble
--- End quote ---
Yes, and that is how we learned not to do it anymore :)
We use Windows tools on Windows and LInux tools on Linux. Period.
The cross-border commit looked tempting at the beginning. When I had forgotten to commit a change on Windows I wondered whether I can avoid to reboot into Windows and reboot back to Linux when working without network on a single machine. The only tool used cross-border was the vcs (tortoisehg/mercurial on both sides) for the commit.
Pecan:
Linux will not let me commit.
I modified the offending files on windows and verified they were not mixed eol.
I committed them, but then updating them on linux still shows windows eols.
--- Code: ---pecan@LinuxMint19:~/proj/cbBeta30/trunk/src/plugins/contrib/keybinder$ svn commit -m "- Keybinder - Convert windows CRLF to Linux LF"
svn: E170001: Commit failed (details follow):
svn: E170001: Authorization failed
--- End code ---
Would someone who can commit from linux please do the following:
--- Code: ---svn update
cd [to the keybinder plugin dir]
dos2unix *.h
dos2unix *.cpp
svn status -u #Just to see the changed filenames
svn commit -m "- KeyBinder - Convert CRLF to LF"
--- End code ---
Thanks
dos2unix works well. I installed it with:
sudo apt install dos2unix
It will show what it will do without modifying the files with the command "dos2unix -ih *.h" etc.
To modify the eols leave out the "-ih"
sodev:
It says Authorization failed, if you didn't enter any credentials delete your stored authentication data (somewhere in .svn in your home directory, don't know exact location).
But you don't have to run these linux tools, simply set the svn:eol-style property to native on all source files and you get the conversion for free. Unless you have already mixed eol, that you can fix with e.g. Notepad++ easily on the windows side.
Pecan:
--- Quote from: sodev on April 08, 2020, 10:28:50 pm ---It says Authorization failed, if you didn't enter any credentials delete your stored authentication data (somewhere in .svn in your home directory, don't know exact location).
But you don't have to run these linux tools, simply set the svn:eol-style property to native on all source files and you get the conversion for free. Unless you have already mixed eol, that you can fix with e.g. Notepad++ easily on the windows side.
--- End quote ---
On Linux Mint19, there's a .subversion/auth/ folder. I deleted it, but commit still failed with "Authorization failed".
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version