LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 10-25-2013, 06:07 PM   #1
casperdaghost
Member
 
Registered: Aug 2009
Posts: 348

Rep: Reputation: 16
SVN add a file to repoistory


There is a host named hostA at 10.10.10.40 and I log into this host and I vi files and when I am done I type in svn commit -m "explanation"
<file changed> and after wards an email goes out to evarybody telling them what file I changed and how, and the boss who knows that I am working (HURRAAAAYYY!!!!).

Then I log into hostC (10.1.300.80) and go to the directory were the file I changed is, and then I type in 'svn up <file change> and then I see a version number that matches the one on hostA.

Problem is I am on hostB (10.1.300.81) and I have a file that I changed (on hostB ) and my boss wants this file 'version controled' (booooooo!!!) . Like the next time I need to edit the file on hostB I have to do it the same way that I would edit something on hostC .

When I do an ls -ltra on the hostB in the directory where the file I need to change is I do not see a ".svn"

When I do an 'svn up' /production/scr/userStatsWrapper.sh on hostB - I get
Code:
Skipped '/production/scr/userStatsWrapper.sh'

When I try an 'svn add" /production/scr/userStatsWrapper.sh on hostB - I get
Code:
svn: '/production/fo/scr' is not a working copy

how do I add the file from hostB to the repoistory on HostA?
 
Old 10-27-2013, 08:52 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
It sounds like you don't have a working copy of the repository on hostB. If that is correct, the svn docs here describe how to do that. Once you have a working copy on hostB, you can copy your file to the required directory and check it in.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
share a bash shell with u--add svn user xiutuo Linux - Server 3 10-27-2011 12:34 AM
SVN add folder question HarryBoy Programming 1 02-01-2011 06:03 PM
How to Add projects to SVN keeping revision/ history? your_shadow03 Linux - Server 1 06-10-2009 10:21 AM
anon svn read-only over apache: '.svn/entries': No such file hedpe Linux - Software 2 04-29-2009 06:31 AM
Not able to add two different projects in SVN (Linux server) deepaklinux Linux - Software 1 02-14-2008 03:02 AM


All times are GMT -5. The time now is 02:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration