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

Re: [PATCH] recognize replaced paths in mailer.py (needs change in svn/repos.py)

From: André Malo <nd_at_perlig.de>
Date: 2006-08-22 10:27:04 CEST

* Mathias Weinert wrote:

> With the included patch mailer.py will report replaced paths as
> 'Replaced' and not as 'Added' any more.
>
> In order to achieve this I also had to patch
> subversion/bindings/swig/python/svn/repos.py. Any ideas how to do this
> in a better way are very welcome.

+ replaced = False
+ if self.changes.has_key(path):
+ # if this add is a replace there is already a change record inserted
+ # by a delete, so in this case set replaced to True.
+ replaced = True

=>

# exlpaining comment
replaced = self.changes.has_key(path)
# or
replaced = path in self.changes

wrt the changes in repos.py: This should be documented in the change log I
think, as it's an incompatible change.

nd

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 22 10:28:15 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.