Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Committing a Directory to Subversion

Tags:

svn

svnkit

Kind of a newbie question, but I am having problems using SNVKit.

I am using SVNKit in an application to commit changes to files. I have it successfully adding the files and folders to the working copy, but I am having problems committing it to the respository.

The command I am trying to run is 'commit -m "Test Add" /svnroot/project1/' but I keep getting "svn: '/home/user' is not a working copy"

I have a structure similar to this:

  • /svnroot/
  • /svnroot/project1/
  • /svnroot/project1/grouping1/
  • /svnroot/project1/grouping1/myfilesarehere

If I try to commit the file, I get the following message: "'/svnroot/project1/grouping1' is not under version control and is not part of the commit, yet its child is part of the commit."

What might I be doing wrong?

EDIT: Fixed the directories.

like image 712
Mike Wills Avatar asked Sep 26 '08 14:09

Mike Wills


People also ask

How do I commit a directory in svn Linux?

If you want to use a file that's under version control for your commit message with --file ( -F ), you need to pass the --force-log option: $ svn commit -F file_under_vc. txt foo. c svn: E205004: Log message file is a versioned file; use '--force-log' to override $ svn commit --force-log -F file_under_vc.

How do I commit a specific file in svn?

The Commit Dialog If your working copy is up to date and there are no conflicts, you are ready to commit your changes. Select any file and/or folders you want to commit, then TortoiseSVN → Commit.... The commit dialog will show you every changed file, including added, deleted and unversioned files.


1 Answers

move your -m "comment" to the end. I would just change directory into your project directory. Then you just type svn commit -m "comment" and svn does the rest.

like image 61
J.J. Avatar answered Sep 30 '22 09:09

J.J.