- # Use the fact, that user is prepared to see changes, to
- # update his branch if there are any
- elif local.ancestorof(main):
- print "case 3"
- if not local.parentof(main):
- local.merge_with(main, user=user, message='Local branch update.')
- no_changes = False
- else:
- print "case 4"
- local.merge_with(main, user=user, message='Local branch update.')
- local = self.shelf()
- main.merge_with(local, user=user, message=message)
-
- print "no_changes: ", no_changes
- return no_changes
+ # Nothing to do
+ elif local.ancestorof(main):
+ return False
+
+ # In all other cases, the local needs an update
+ # and possibly conflict resolution, so fail
+ raise LibraryExcepton("Document not prepared for sharing.")
+