Svn commit failed for no apparent reason

I have a repository at home that is issued on my work computer to store personal items, such as the information that I receive in emails, etc. during work. I changed the file yesterday and went to commit it, but I got the svn: File not found error. this is very strange, because I have not deleted any directories recently in this repository, and everything is up to date. I am the only person who has access to a repo, so I can’t figure it out!

Here is the sequence of commands:

 $ svn update filename.pdf At revision 551. $ cp filename.pdf.new filename.pdf $ svn ci filename.pdf -m "updated" Sending filename.pdf Transmitting file data .svn: Commit failed (details follow): svn: File not found: transaction '551-fg', path '/filesdir/filename.pdf' 

If anyone has any ideas on how to solve this, please let me know. I should also mention that the repository is stored on the ntfs external drive at home, which I start and pause remotely via ssh to make the drive longer. it is possible that the drive is dying, but there are no other signs.

all the other messages that I saw with this error were related to someone deleting the directory and then doing some kind of merge, but I didn’t do anything like that - I just made a simple commit!

edit Strelok requests:

 $ pwd ..../filesdir $ svn status ! . ? filename.pdf.new M filename.pdf 

hmm, so it looks like the filesdir directory filesdir not found! this is very strange because I definitely did not delete the directory! anyway, try updating the file only ...

 $ rm filename $ cd .. $ svn update filesdir Restored 'filesdir/filename.pdf' svn: Working copy path 'filesdir/filename.pdf' does not exist in repository 

Bad luck. perhaps try updating the entire directory where the damaged file is located ...

 $ mv filesdir/filename.pdf.new /tmp/ $ sudo rm -r filesdir/ $ svn update filesdir A filesdir A [lots of other files but not filename.pdf!!!] $ cd filesdir $ ls filename.pdf ls: cannot access filename.pdf: No such file or directory $ svn status filename.pdf $ # no output!!! $ mv /tmp/filename.pdf.new filename.pdf $ svn status filename.pdf ? filename.pdf 

try adding the file to the repository as it seems to be no longer in the repository!

 $ svn add filename.pdf A (bin) filename.pdf $ svn ci filename.pdf -m "added" Adding (bin) filename.pdf Transmitting file data . Committed revision 552. 

hmmmmm is very strange ... well its fixed (for now), but I have no idea what caused the screw in the first place. oh good: P

+4
source share

Source: https://habr.com/ru/post/1382978/


All Articles