Index: /tags/ipp-20120404/ippTasks/pstamp.pro
===================================================================
--- /tags/ipp-20120404/ippTasks/pstamp.pro	(revision 33810)
+++ /tags/ipp-20120404/ippTasks/pstamp.pro	(revision 33811)
@@ -13,4 +13,5 @@
 $pstampFin_DB = 0
 $pstampRev_DB = 0
+$pstampRevReq_DB = 0
 $pstampDep_DB = 0
 $pstampRevDep_DB = 0
@@ -117,4 +118,7 @@
 
 macro pstamp.revert.on
+    task pstamp.request.revert
+        active true
+    end
     task pstamp.job.revert
         active true
@@ -128,4 +132,7 @@
 end
 macro pstamp.revert.off
+    task pstamp.request.revert
+        active false
+    end
     task pstamp.job.revert
         active false
@@ -662,4 +669,44 @@
 end
 
+task pstamp.request.revert
+    host        local
+
+    periods     -poll $LOADPOLL
+    periods     -exec 1200
+    periods     -timeout 20
+    npending    1
+
+    task.exec
+        stdout NULL
+        stderr $LOGSUBDIR/pstamp.request.revert.log
+        $run = pstamptool -revertreq
+        if ($DB:n == 0)
+            option DEFAULT
+        else 
+            $run = $run $PS_DBSERVER -dbname $DB:$pstampRevReq_DB
+            $pstampRevReq_DB ++
+            if ($pstampRevReq_DB >= $DB:n) set pstampRevReq_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
 task pstamp.job.revert
     host        local
Index: /tags/ipp-20120404/ippTools/src/pstamptoolConfig.c
===================================================================
--- /tags/ipp-20120404/ippTools/src/pstamptoolConfig.c	(revision 33810)
+++ /tags/ipp-20120404/ippTools/src/pstamptoolConfig.c	(revision 33811)
@@ -125,4 +125,6 @@
     psMetadataAddStr(revertreqArgs, PS_LIST_TAIL, "-state", 0,      "state to revert", NULL);
     psMetadataAddStr(revertreqArgs, PS_LIST_TAIL, "-label", PS_META_DUPLICATE_OK, "search by pstampRequest label (LIKE comparision)", NULL);
+    // this argument is supplied by pantasks so we accept it but don't use it
+    psMetadataAddU64(revertreqArgs, PS_LIST_TAIL, "-limit", 0,      "not used", 0);
 
     // -pendingcleanup
