integrating svn (subversion) with vi editor


 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications integrating svn (subversion) with vi editor
# 1  
Old 07-09-2009
Question integrating svn (subversion) with vi editor

hi,

I have installed subversion in my debian system.and is working properly with authentication.

my repository has only one workspace. and many authenticated users edit files in this.


my question is simple.

can we integrate svn with vi ,so that if anyone edits the file and make any changes to that & as soon as he exits vi , that file has to get comited automatically (with svn authentication). and if authentication fails. the file should not change..

is there any way we can do this..?

any suggestion would help..

Smilie
# 2  
Old 07-10-2009
There are three possibilities: 1. Create a wrapper script around vi. 2. Write autoload scripts and trigger scripts for vim. 3. Use the Linux iNotify feature.

1 is the most basic, but requires that all instances of vi (that users have access to) are moved to a special folder and replaced with soft-links to their new locations. It will still be (almost) impossible to prevent users from using the real editor, so you might be prepared for that.

2 requires everyone use and work with vim, which might be okay for you. The vim scripting language is powerful and you can benefit from complete control of the vim editor.

3 demands you use Linux or another OS with something like "inotify" which is a kernel feature. Processes can essentially tell the kernel "notify me if a file changes", and that process can for instance, so the svn commit. However, I don't know if you can control the aspect of user's login to svn.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Making post down hook script for svn regarding sending emails after an file is committed in svn

Hi Folks , I am asking this question but i apologise please if this is not the correct forum , I have to develop a shell script that i want to place in at hooks/post-commit , that is basically i have to develop a post hook script and the main functionality of that script would be lets say if... (0 Replies)
Discussion started by: sunsun06060606
0 Replies

2. SuSE

SVN(subversion) installation on SLES 11

I had installed svn on SLES 11 using comands: zypper addrepo http://download.opensuse.org/repositories/devel:tools:scm:svn/SLE_11/devel:tools:scm:svn.repo zypper refresh zypper install subversion But when I run svn it gives me error as: linux-uw85:~/Desktop # svn help svn: error while... (4 Replies)
Discussion started by: rupeshkp728
4 Replies

3. Solaris

How to integrate SVN client to SVN server repository.

Hi, I am new to SVN configuration on Solaris 10.I have installed SVN client version 1.7. bash-3.00# ./svn --version svn, version 1.7.4 (r1295709) compiled Mar 2 2012, 12:59:36 Here my requirement is how to integrate svn client to One of the SVN server repository. My repository... (0 Replies)
Discussion started by: muraliinfy04
0 Replies

4. Programming

Integrating Jconsole with Eclipse

Hi Guys, I was hoping someone has integrated Eclipse with jconsole to monitor their applications. I have not seen this in action . Any help is much appreciated http://images.devshed.com/fds/smilies/smile.gif Thanks (0 Replies)
Discussion started by: aish11
0 Replies

5. UNIX for Advanced & Expert Users

SVN Subversion Mac Questions

Hello all, I am the owner of a company that just lost it's programmer. Because I am not a programmer, I am trying to see if I can get some assistance setting up the following: Hey - couple questions On the SERVER SVN is kept. Is is maintained under the user USERSERVER The problem is... (0 Replies)
Discussion started by: yoyoyo777
0 Replies

6. UNIX for Dummies Questions & Answers

Integrating bash with sql.

Hi Guys, I m just curious to know whether it is possible to store the output of a shell command to a database . My main aim is to use a full capacity of sql language to analyze the output generated by shell script. for example. by storing the 5 instances of of top at different interval we... (6 Replies)
Discussion started by: pinga123
6 Replies

7. UNIX for Advanced & Expert Users

Problem with Subversion SVN

Hi, I am trtying to install SVN server with Apache. I have already configured apache with SVN modulesh and the same can be seen in the modules directory. -rwxr-xr-x 1 root root 34740 Jul 3 13:43 mod_authz_svn.so -rwxr-xr-x 1 root root 385133 Jul 3 13:43 mod_dav_svn.so now the... (1 Reply)
Discussion started by: Siddheshk
1 Replies

8. Shell Programming and Scripting

set EDITOR=vi -> default editor not setting for cron tab

Hi All, I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by set EDITOR=vi it does not open a vi editor , rather it do as below..... ///////////////////////////////////////////////////// $ set... (6 Replies)
Discussion started by: aarora_98
6 Replies

9. Red Hat

SVN subversion performance issue.

Hello to everyone, I am having svn performace issue. Whenever i am doing svn checkout it's slower on one machine than other Xen machine. I will try to explain what is goin on here. I have 3 machine and all three running linux (Centos 5) Machine A is running Svn server. Machine B... (6 Replies)
Discussion started by: email-lalit
6 Replies

10. Programming

about wave file integrating.

Now I have two wave file(*.wav) at Tru64 Unix machine. I want to make a new wave file including the two wave file. how I should finish this programmer. If you know, can you give me the format of the wave file(*.wav) and Sun au file(*.au). Thank you. (1 Reply)
Discussion started by: livic
1 Replies
Login or Register to Ask a Question