Package: unison
Version: 2.13.16-5
Followup-For: Bug #394946

in version 2.10 the unison authors revamped the merging 
setup completely:
the functionality of merge and merge2 was merged into merge :-)

they didn't fully update the documentation and left the 
old changes referencing merge2 in there.

that change also requires one's merge properties 
to be reworked substantially to make it work again. this is 
badly documented in my opinion, and i had to wade through 
the source to figure it out; maybe there might be a nice NEWS.Debian
with some info for the next version?

*) an merging is run only after confirming to commit the updates, 
not immediately as before.

*) also before merge applied to files with backups, merge2 to everything else.
now it's all one merger, but one has to provide extra special strings
to control the behaviour.

*) simply using CURRENT1, CURRENT2 and CURRENTARCH as suggested in
the example on line 1866 of the manual does NOT work if backups aren't
enabled! unison throws a somewhat misleading exception in that case and dies
altogether.

*) one must use CURRENTARCHOPT to catch both backup and no-backup cases,
which is stupidly set to " " (one blank, not empty) in the no-backup case.
line 1819 of the manual is wrong, the cause seems to be line 617 of files.ml.

*) to make the emacs/ediff example work, it is necessary to run 
ediff-merge-files or ediff-merge-files-with-ancestor
depending on CURRENTARCHOPT (because e-m-f-w-a is not happy with a 
dud " " as the ancestor file).

merge = Name *.txt -> emacs --eval '(if (not (string= "CURRENTARCHOPT" " "))
        (ediff-merge-files-with-ancestor "CURRENT1" "CURRENT2" 
        "CURRENTARCHOPT" nil "NEW")
        (ediff-merge-files "CURRENT1" "CURRENT2" nil "NEW"))'

(this merge pref is tested and works on my etch box, once it's formatted into
one long line.)

regards
az

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (990, 'stable'), (980, 'testing'), (970, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18
Locale: LANG=C, LC_CTYPE=de_AT (charmap=ISO-8859-1)

Versions of packages unison depends on:
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries

Versions of packages unison recommends:
ii  openssh-client [ssh-client]   1:4.3p2-9  Secure shell client, an rlogin/rsh

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to