The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > UNIX and Linux Applications
.
google unix.com



UNIX and Linux Applications Discuss UNIX and Linux software applications. This includes SQL, Databases, Middleware, MOM, SOA, EDA, CEP, BI, BPM and similar topics.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
About XML file Integrating to a table kbiricik UNIX for Advanced & Expert Users 1 05-24-2009 05:07 PM
Integrating Applications With OpenSSO iBot Solaris BigAdmin RSS 0 11-12-2008 09:10 AM
set EDITOR=vi -> default editor not setting for cron tab aarora_98 Shell Programming and Scripting 6 09-13-2008 02:01 AM
Integrating unix with Active Directory nottrobin UNIX for Advanced & Expert Users 1 03-17-2008 05:11 PM
about wave file integrating. livic High Level Programming 1 08-19-2001 10:47 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-09-2009
madhusudankh madhusudankh is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 5
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..

  #2 (permalink)  
Old 07-10-2009
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,884
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.
Reply

Bookmarks

Tags
commit-on-change, inotify, svn, vi

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0