[svnbook commit] r1504 - trunk/src/ru

dmitriy svnbook-dev at red-bean.com
Tue Jun 28 02:38:59 CDT 2005


Author: dmitriy
Date: Tue Jun 28 02:38:58 2005
New Revision: 1504

Modified:
   trunk/src/ru/sync.py
Log:
* ru/sync.py: Absent staff for updating 'LAST_UPDATED' is added.


Modified: trunk/src/ru/sync.py
==============================================================================
--- trunk/src/ru/sync.py	(original)
+++ trunk/src/ru/sync.py	Tue Jun 28 02:38:58 2005
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 
-import sys, os, getopt, string
+import sys, os, string
 
 def usage(err_msg):
   stream = err_msg and sys.stderr or sys.stdout
@@ -45,6 +45,11 @@
     cmd = "svn " + action + " -r " + last_up_rev + ":HEAD " + book_src_url
     print cmd
     os.system(cmd)
+    if string.lower(raw_input("Whether to udate 'LAST_UPDATED'? [y/N] ")) == 'y':
+      os.chdir("..")
+      cmd = "svnversion . --no-newline > LAST_UPDATED"
+      print cmd
+      os.system(cmd)
 
 if __name__ == "__main__":
     main()



More information about the svnbook-dev mailing list