OSSP CVS Repository

ossp - Check-in [4902]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4902
Date: 2004-Dec-17 10:52:08 (local)
2004-Dec-17 09:52:08 (UTC)
User:rse
Branch:
Comment: be even more convinient and open .rej file automatically if there is one
Tickets:
Inspections:
Files:
ossp-pkg/svs/ChangeLog      1.2 -> 1.3     4 inserted, 0 deleted
ossp-pkg/svs/svs.sh      1.2 -> 1.3     5 inserted, 1 deleted

ossp-pkg/svs/ChangeLog 1.2 -> 1.3

--- ChangeLog    2004/12/16 16:39:37     1.2
+++ ChangeLog    2004/12/17 09:52:08     1.3
@@ -10,6 +10,10 @@
 
   Changes between 1.0.0 and 1.0.1 (14-Dec-2004 to 16-Dec-2004):
 
+    *) When editing a file look for corresponding .rej file
+       and if found and the editor is Vim, open both files. 
+       [Ralf S. Engelschall]
+
     *) When searching for *.orig files, sort the resulting filename
        list to make sure we deterministically produce patches.
        [Ralf S. Engelschall]


ossp-pkg/svs/svs.sh 1.2 -> 1.3

--- svs.sh       2004/12/16 16:39:37     1.2
+++ svs.sh       2004/12/17 09:52:08     1.3
@@ -57,7 +57,11 @@
 
             #   edit file
             chmod u+w $file
-            ${EDITOR-vi} $file
+            if [ ".${EDITOR-vi}" = .vim -a -f $file.rej ]; then
+                ${EDITOR-vi} -o2 $file $file.rej
+            else
+                ${EDITOR-vi} $file
+            fi
 
             #   check for editing results
             if cmp $file.orig $file >/dev/null 2>&1; then

CVSTrac 2.0.1