Reduce false positives for change detection (i.e. make it rarer for nothing fundamental to change about the listing, and yet a difference be found).

by mrs, 08 Nov, 2009 01:41 AM
1024 1028  
892892     }
893893   }
894894 
895   public XMLElement toXML() {
896     return toXML(true);
897   }
898 
895899   /**
896900    * @brief Check everything and build an XML element that contains as
897901    * children all of the values that need storing for this item.
------
901905    * @return An XMLElement containing as children, all of the key
902906    * values associated with this auction entry.
903907    */
904   public XMLElement toXML() {
908   public XMLElement toXML(boolean includeEvents) {
905909     XMLElement xmlResult = new XMLElement("auction");
906910 
907911     xmlResult.setProperty("id", getIdentifier());
------
957961       xmlResult.addChild(xshipping);
958962     }
959963 
960     if(mEntryEvents != null) {
964     if(includeEvents && mEntryEvents != null) {
961965       XMLElement xlog = mEntryEvents.toXML();
962966       if (xlog != null) {
963967         xmlResult.addChild(xlog);
1000 1028  
9292       ae.setUpdating();
9393       MQFactory.getConcrete("redraw").enqueue(ae.getIdentifier());
9494       Thread.yield();
95       XMLInterface before = ae.toXML();
95       XMLInterface before = ae.toXML(false);
9696       ae.update();
97       XMLInterface after = ae.toXML();
97       XMLInterface after = ae.toXML(false);
9898       ae.clearUpdating();
9999       if (!(after.toString().equals(before.toString()))) {
100100         MQFactory.getConcrete("upload").enqueue(ae.getIdentifier());