简体   繁体   中英

SVN Add file error on commit

I'm trying to add a file to a subversion repository. I add the file so that it's under revision, and then I try to commit and get this error. I know it's not there, I want to add it! Any help or what transaction 1-1 is would be great.

Adding samflag.pl

Transmitting file data .svn: Commit failed (details follow):

svn: File not found: transaction '1-1', path '/mnt/disk2/users/nstong/repo/Scripts/samflag.pl'

I've seen that error when you're trying to add a file in the repository and not in a working directory.

  • Did you do a checkout of the working directory outside of the repository itself?
  • Were you able to run the svn add command successfully?
  • What does the svn status command show you?

In fact, are you using the command line or some GUI client to do this task?

In between the initial checkout and trying to add the file I had changed my subversion host settings so that I didn't have to provide the full path to the repository when tunneling. Just deleting the folder and checking out a new copy of everything allowed me to add the file with no problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM