# # # patch "revision.psp" # from [735c03c2b80c7d4f09082abebda060e87b09fba4] # to [3b11e5ec0903c82da43bebf75baa3c76844b9b6f] # ============================================================ --- revision.psp 735c03c2b80c7d4f09082abebda060e87b09fba4 +++ revision.psp 3b11e5ec0903c82da43bebf75baa3c76844b9b6f @@ -75,7 +75,10 @@ type = stanza[0][0] if type == "patch": fname, from_id, to_id = stanza[0][1], stanza[1][1], stanza[2][1] - value += 'Patch file %s from %s to %s (diff)
' % (hq(fname), urllib.quote(from_id), hq(from_id), urllib.quote(to_id), hq(to_id), urllib.quote(from_id), urllib.quote(to_id)) + if not from_id: + value += 'Add file %s with revision %s
' % (hq(fname), urllib.quote(to_id), hq(to_id)) + else: + value += 'Patch file %s from %s to %s (diff)
' % (hq(fname), urllib.quote(from_id), hq(from_id), urllib.quote(to_id), hq(to_id), urllib.quote(from_id), urllib.quote(to_id)) elif type == "old_revision": old_revision, old_manifest = stanza[0][1], stanza[1][1] value += 'Old revision is: %s
Old manifest: %s
' % (urllib.quote(old_revision), hq(old_revision), hq(old_manifest))