changeset 1387:fd3ceaad98d1

Fixed the new remote page scenario.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Sun, 20 Aug 2006 23:49:47 +0200
parents 0559fa036536
children 46812497775e
files MoinMoin/action/SyncPages.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/SyncPages.py	Sun Aug 20 23:46:06 2006 +0200
+++ b/MoinMoin/action/SyncPages.py	Sun Aug 20 23:49:47 2006 +0200
@@ -343,7 +343,7 @@
             # XXX upgrade to write lock
             try:
                 local_change_done = True
-                current_page.saveText(merged_text, sp.local_rev, comment=comment) # YYY direct access
+                current_page.saveText(merged_text, sp.local_rev or 0, comment=comment) # YYY direct access
             except PageEditor.Unchanged:
                 local_change_done = False
             except PageEditor.EditConflict: