Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Feb 2019 01:59:03 +0000 (UTC)
From:      Ryan Steinmetz <zi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-svnadmin@freebsd.org
Subject:   svn commit: r493633 - svnadmin/hooks/scripts
Message-ID:  <201902230159.x1N1x3vr074164@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902230159.x1N1x3vr074164>