X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5ffbe263839acf003494225f41a3f3c95af797b7..ddfd0025304ea7087fdd2a4e06893a6f998b9f19:/lib/wlrepo/mercurial_backend/document.py diff --git a/lib/wlrepo/mercurial_backend/document.py b/lib/wlrepo/mercurial_backend/document.py index a579fb75..a8f7adc3 100644 --- a/lib/wlrepo/mercurial_backend/document.py +++ b/lib/wlrepo/mercurial_backend/document.py @@ -115,7 +115,8 @@ class MercurialDocument(wlrepo.Document): return (True, False) - return self._revision.merge_with(sv._revision, user=user) + return self._revision.merge_with(sv._revision, user=user, + message="$AUTO$ Personal branch update.") finally: lock.release() @@ -160,6 +161,9 @@ class MercurialDocument(wlrepo.Document): if not local.parentof(main): success, changed = main.merge_with(local, user=user, message=message) + success = True + changed = False + # Case 3: # main * # | @@ -179,6 +183,9 @@ class MercurialDocument(wlrepo.Document): if not local.parentof(main): success, changed = local.merge_with(main, user=user, \ message='$AUTO$ Local branch update during share.') + + success = True + changed = False else: print "case 4" @@ -189,7 +196,7 @@ class MercurialDocument(wlrepo.Document): return False if changed: - local = local.latest() + local = self.latest()._revision success, changed = main.merge_with(local, user=user,\ message=message)