svn commit: r493633 - svnadmin/hooks/scripts

Ryan Steinmetz zi at FreeBSD.org
Sat Feb 23 01:59:04 UTC 2019


Author: zi
Date: Sat Feb 23 01:59:03 2019
New Revision: 493633
URL: https://svnweb.freebsd.org/changeset/ports/493633

Log:
  - Make error message useful
  
  PR:		226864, 231327
  Approved by:	portmgr (implicit, noop)

Modified:
  svnadmin/hooks/scripts/verify.py

Modified: svnadmin/hooks/scripts/verify.py
==============================================================================
--- svnadmin/hooks/scripts/verify.py	Sat Feb 23 01:52:45 2019	(r493632)
+++ svnadmin/hooks/scripts/verify.py	Sat Feb 23 01:59:03 2019	(r493633)
@@ -234,7 +234,7 @@ class ChangeReceiver(delta.Editor):
     # POLICY: file replacement is not allowed
     for path, change in fs.paths_changed(self.txn_root).iteritems():
       if (change.change_kind == fs.path_change_replace):
-        self.do_fail('Do not replace a file. This can lose history. Path: "%s"\n' % path)
+        self.do_fail('Do not replace a file, this can lose history. Try: svn cp;svn commit, then add your changes and commit.  Path: "%s"\n' % path)
 
     # Whew!
     core.svn_pool_destroy(subpool)


More information about the svn-ports-svnadmin mailing list