You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by js...@apache.org on 2010/11/30 23:21:39 UTC

svn commit: r1040812 - /subversion/trunk/contrib/server-side/fsfsverify.py

Author: jszakmeister
Date: Tue Nov 30 22:21:38 2010
New Revision: 1040812

URL: http://svn.apache.org/viewvc?rev=1040812&view=rev
Log:
Allow fsfsverify's --truncate to work with newer revision formats.

Modified:
    subversion/trunk/contrib/server-side/fsfsverify.py

Modified: subversion/trunk/contrib/server-side/fsfsverify.py
URL: http://svn.apache.org/viewvc/subversion/trunk/contrib/server-side/fsfsverify.py?rev=1040812&r1=1040811&r2=1040812&view=diff
==============================================================================
--- subversion/trunk/contrib/server-side/fsfsverify.py (original)
+++ subversion/trunk/contrib/server-side/fsfsverify.py Tue Nov 30 22:21:38 2010
@@ -913,6 +913,11 @@ def truncate(noderev, revFile):
   fields[3] = '0' * len(fields[3])
   fields[4] = '0' * len(fields[4])
   fields[5] = 'd41d8cd98f00b204e9800998ecf8427e'
+
+  if len(fields) > 6:
+    fields[6] = 'da39a3ee5e6b4b0d3255bfef95601890afd80709'
+    fields[7] = fields[7].strip()
+
   newTextRep = ' '.join(fields) + '\x0a'
   assert(len(newTextRep) == overallLength)
   revFile.write(newTextRep)