[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

contrib hook enforcer throws on empty renamed file

From: Mockford, Ian <Ian.Mockford_at_thalesgroup.com>
Date: Tue, 23 Feb 2010 12:41:37 -0000

Using the enforcer script from contrib/hooks, I get an error when a
commit includes a renamed empty file, for example:
AssertionError: Expected left file info, got: 'Deleted:

This only happens if the file is empty.

The exact result seems to depend on the order in which the two
operations that constitute a rename happen - Delete & Add-by-copying.

The problem seems to be that enforcer always expects a "diff" output
following the file rename, but if the file is empty, svnlook diff
shows no diff output bars.

(enforcer using svnlook version 1.6.9 (r901367), on Windows XP)

Can anyone confirm this is a bug?
Or a possible change to svnlook output format?

Please consider the environment before printing this email.
Thales Research and Technology (UK) Limited DISCLAIMER: The information
contained in this e-mail is confidential. It may also be legally
privileged. It is intended only for the stated addressee(s) and access to
it by any other person is unauthorised. If you are not an addressee, you
must not disclose, copy, circulate or in any other way use or rely on the
information contained herein. Such unauthorised use may be unlawful. We
may monitor all e-mail communications through our networks. If you have
received this e-mail in error, please inform us immediately on +44 (0)1293
575987 and delete it and all copies from your system. We accept no
responsibility for changes to any e-mail which occur after it has been sent.
Attachments to this e-mail may contain software viruses which could damage
your system. We therefore recommend you virus-check all attachments before
opening. The registered office of Thales Research and Technology (UK)
Limited is at: 2 Dashwood Lang Road, The Bourne Business Park, Addlestone,
Weybridge, Surrey KT15 2NX. Registered in England No. 774298.
Received on 2010-02-23 13:45:39 CET

This is an archived mail posted to the Subversion Dev mailing list.