Unexpected revisions

Hi,

when I create a document twice on the same way, I get two unexpected revision entries (in Aspose and in Word, too). Shouldn’t these always be the same and not show any revisions?

I upload the project here
Revision bug.zip (7.6 MB)

Regards,
@Nachti

@Nachti The behavior is expected. The revisions you see is the difference is shapes unique ids. You can avoid this by ignoring them upon comparing:

ImportFormatOptions opt = new ImportFormatOptions();
opt.KeepSourceNumbering = true;

Aspose.Words.Document doc = new Aspose.Words.Document(@"C:\Temp\AR_Cover.dotx");
Aspose.Words.Document doc2 = new Aspose.Words.Document(@"C:\Temp\CH1_V1.docx");
doc.AppendDocument(doc2, ImportFormatMode.KeepSourceFormatting);
doc.Save(@"C:\Temp\resulta.docx");

Aspose.Words.Document doc3 = new Aspose.Words.Document(@"C:\Temp\AR_Cover.dotx");
Aspose.Words.Document doc4 = new Aspose.Words.Document(@"C:\Temp\CH1_V1.docx");
doc3.AppendDocument(doc4, ImportFormatMode.KeepSourceFormatting);
doc3.Save(@"C:\Temp\resultb.docx");

// Ignore Dml Unique Id upon comparing documents.
Aspose.Words.Comparing.CompareOptions compareOptions = new Aspose.Words.Comparing.CompareOptions();
compareOptions.IgnoreDmlUniqueId = true;

doc.Compare(doc3, "who", DateTime.Now, compareOptions);
Console.WriteLine(doc.Revisions.Count);
doc.Save(@"C:\Temp\out.docx");

@alexey.noskov

How can I remove this unique Id from the shape ? Is that possible ?

@Nachti No, this is not possible.