Index: /tags/ipp-20100823/ippTasks/pstamp.pro
===================================================================
--- /tags/ipp-20100823/ippTasks/pstamp.pro	(revision 29144)
+++ /tags/ipp-20100823/ippTasks/pstamp.pro	(revision 29145)
@@ -14,4 +14,5 @@
 $pstampRev_DB = 0
 $pstampDep_DB = 0
+$pstampRevDep_DB = 0
 $pstampCleanup_DB = 0
 
@@ -104,7 +105,13 @@
         active true
     end
+    task pstamp.dependent.revert
+        active true
+    end
 end
 macro pstamp.revert.off
     task pstamp.job.revert
+        active false
+    end
+    task pstamp.dependent.revert
         active false
     end
@@ -513,5 +520,5 @@
         stdout NULL
         stderr $LOGSUBDIR/pstamp.job.revert.log
-        $run = pstamptool -revertjob -all
+        $run = pstamptool -revertjob
         if ($DB:n == 0)
             option DEFAULT
@@ -798,2 +805,42 @@
 end
 
+task pstamp.dependent.revert
+    host        local
+
+    periods     -poll $LOADPOLL
+    periods     -exec 900
+    periods     -timeout 300
+    npending    1
+
+    task.exec
+        stdout NULL
+        stderr $LOGSUBDIR/pstamp.dependent.revert.log
+        $run = pstamptool -revertdependent
+        if ($DB:n == 0)
+            option DEFAULT
+        else 
+            $run = $run $PS_DBSERVER -dbname $DB:$pstampRevDep_DB
+            $pstampRevDep_DB ++
+            if ($pstampRevDep_DB >= $DB:n) set pstampRevDep_DB = 0
+        end
+        add_poll_args run
+        add_poll_labels run
+        command $run
+    end
+
+    task.exit $EXIT_SUCCESS
+        # nothing to do
+    end
+
+    task.exit   default
+        showcommand failure
+    end
+
+    task.exit   crash
+        showcommand crash
+    end
+
+    task.exit   timeout
+        showcommand timeout
+    end
+end
