[prev in list] [next in list] [prev in thread] [next in thread] 

List:       unison-users
Subject:    [unison-users] rootalias and canonical order of roots
From:       Gilles Peskine <Gilles.Peskine () inria ! fr>
Date:       2004-04-16 17:03:55
Message-ID: 20040416170355.GA9421 () chianti ! inria ! fr
[Download RAW message or body]

[I'd rather you kept me cc'ed as I am not subscribed to unison-users. I
will check the archive in the next few days though.]

Hello,

It seems that while rootalias affects the naming of roots for archive
name purposes, it does not affect their ordering (resulting in a .5
chance of not working). This was observed with unison 2.9.1.

The symptoms: I usually to synchronize files from cincle to puligny. I
wanted to use chianti or muscadet instead of puligny (the three share
their files with NFS). The following rootalias specification worked:

================ unison profile on cincle (excerpt) ================
root = cvsroot
#root = ssh://puligny/cvsroot
#root = ssh://chianti/cvsroot
root = ssh://muscadet/cvsroot
rootalias = //muscadet//home/beaune/moscova3/peskine/cvsroot -> \
//puligny//home/beaune/moscova3/peskine/cvsroot rootalias = \
//chianti//home/beaune/moscova3/peskine/cvsroot -> \
//puligny//home/beaune/moscova3/peskine/cvsroot ================ unison profile on \
cincle (excerpt) ================

However, using chianti as the remote host fails to find the desired
archive file (full trace attached). The relevant line seems to be:

[update] Archive name is \
//cincle//home/gilles/cvsroot;//puligny//home/beaune/moscova3/peskine/cvsroot, \
//cincle//home/gilles/cvsroot;17  i.e. 049a8fef5333743bef512ad37773b058

where as my archive file .unison/areb6044dc5ae0952367478b3fa0157fd3 shows:

Archive for root //cincle//home/gilles/cvsroot synchronizing roots \
//cincle//home/gilles/cvsroot, //puligny//home/beaune/moscova3/peskine/cvsroot



A few more minor points:

* The end of the trace (terminal capture) shows debugging output getting mixed
  up with normal output; looks like some flush calls are mising.

* When I first saw the warning, my reflex was to press Ctrl+C, which left locks
  lying around. I would have expected unison to abort gracefully on SIGINT.

* I found the manual confusing as to how to write the rootalias specification,
  in particular the fact that I had to expand the home directory on the remote
  machine.

-- Gilles Peskine


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/26EolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/unison-users/

<*> To unsubscribe from this group, send an email to:
     unison-users-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 


["chianti.unison.trace" (text/plain)]

~% unison -debug update cvsroot                 
Preferences:
ui = graphic
server = false
prefsdocs = false
doc = 
version = false
silent = false
dumbtty = false
testserver = false
rest = cvsroot
contactquietly = false
key = 
label = 
expert = false
reusewindows = false
height = 20
batch = false
auto = false
backups = false
prefer = 
force = 
sortnewfirst = false
sortbysize = false
editor = emacs
merge2 = 
merge = 
diff = diff
verifyTransfers = false
statusdepth = 2
fastcheck = default
maxbackups = 2
rootalias = //chianti//home/beaune/moscova3/peskine/cvsroot -> \
//puligny//home/beaune/moscova3/peskine/cvsroot rootalias = \
//muscadet//home/beaune/moscova3/peskine/cvsroot -> \
//puligny//home/beaune/moscova3/peskine/cvsroot rootsName = 
ignore = Path CVSROOT/sync
ignore = Path CVSROOT/history
root = ssh://chianti/cvsroot
root = cvsroot
killserver = false
rsync = true
addversionno = false
servercmd = 
rshargs = 
rshcmd = rsh
sshcmd = ssh
xferbycopying = true
sshversion = 
pretendwin = false
times = true
group = false
owner = false
numericids = false
perms = 455
ignorecase = false
timers = false
terse = false
logfile = .unison/unison.log
log = true
debugtimes = false
debug = update
addprefsto = 
Contacting server...
[update] Canonical root name //chianti//home/beaune/moscova3/peskine/cvsroot
  is aliased to //puligny//home/beaune/moscova3/peskine/cvsroot
[update] Canonical root name //cincle//home/gilles/cvsroot
  is not aliased
Roots: 
        ssh://chianti/cvsroot
        cvsroot
  i.e. 
        ssh://chianti/cvsroot
        cvsroot
  i.e. (in canonical order)
       /home/gilles/cvsroot
       //chianti//home/beaune/moscova3/peskine/cvsroot

Looking for changes
[update] Canonical root name //cincle//home/gilles/cvsroot
  is not aliased
[update] Archive name is \
//cincle//home/gilles/cvsroot;//puligny//home/beaune/moscova3/peskine/cvsroot, \
//cincle//home/gilles/cvsroot;17  i.e. 049a8fef5333743bef512ad37773b058 [server: \
update] Canonical root name //chianti//home/beaune/moscova3/peskine/cvsroot  is \
aliased to //puligny//home/beaune/moscova3/peskine/cvsroot [server: update] Archive \
name is //puligny//home/beaune/moscova3/peskine/cvsroot;//puligny//home/beaune/moscova3/peskine/cvsroot, \
//cincle//home/gilles/cvsroot;17  i.e. 42a961433530af4457e0c20458ae7485 [update] \
Canonical root name //cincle//home/gilles/cvsroot  is not aliased
[update] Archive name is \
//cincle//home/gilles/cvsroot;//puligny//home/beaune/moscova3/peskine/cvsroot, \
//cincle//home/gilles/cvsroot;17  i.e. 049a8fef5333743bef512ad37773b058 [update] \
Canonical root name //cincle//home/gilles/cvsroot  is not aliased
[update] Archive name is \
//cincle//home/gilles/cvsroot;//puligny//home/beaune/moscova3/peskine/cvsroot, \
//cincle//home/gilles/cvsroot;17  i.e. 049a8fef5333743bef512ad37773b058 [server: \
update] Canonical root name //chianti//home/beaune/moscova3/peskine/cvsroot  Warning: \
No archive files were found for these roots.  This can happen either because this is \
the first time you have synchronized these roots,  or because you have upgraded \
Unison to a new version with a different archive format.  

Update detection may take a while on this run if the replicas are 
large.

Unison will assume that the 'last synchronized state' of both replicas
was completely empty.  This means that any files that are different
will be reported as conflicts, and any files that exist only on one
replica will be judged as new and propagated to the other replica.
If the two replicas are identical, then no changes will be reported.
Press return to continue.[<spc>] is aliased to \
//puligny//home/beaune/moscova3/peskine/cvsroot [server: update] Archive name is \
//puligny//home/beaune/moscova3/peskine/cvsroot;//puligny//home/beaune/moscova3/peskine/cvsroot, \
//cincle//home/gilles/cvsroot;17  i.e. 42a961433530af4457e0c20458ae7485 [server: \
update] Canonical root name //chianti//home/beaune/moscova3/peskine/cvsroot  is \
aliased to //puligny//home/beaune/moscova3/peskine/cvsroot [server: update] Archive \
name is //puligny//home/beaune/moscova3/peskine/cvsroot;//puligny//home/beaune/moscova3/peskine/cvsroot, \
//cincle//home/gilles/cvsroot;17  i.e. 42a961433530af4457e0c20458ae7485 x[update] \
Canonical root name //cincle//home/gilles/cvsroot  is not aliased
[update] Archive name is \
//cincle//home/gilles/cvsroot;//puligny//home/beaune/moscova3/peskine/cvsroot, \
//cincle//home/gilles/cvsroot;17  i.e. 049a8fef5333743bef512ad37773b058 [server: \
update] Canonical root name //chianti//home/beaune/moscova3/peskine/cvsroot  is \
aliased to //puligny//home/beaune/moscova3/peskine/cvsroot [server: update] Archive \
name is //puligny//home/beaune/moscova3/peskine/cvsroot;//puligny//home/beaune/moscova3/peskine/cvsroot, \
//cincle//home/gilles/cvsroot;17  i.e. 42a961433530af4457e0c20458ae7485



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic