monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] ikiwiki monotone support


From: Brian May
Subject: Re: [Monotone-devel] ikiwiki monotone support
Date: Thu, 21 Feb 2008 20:37:51 +1100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

>>>>> "William" == William Uther <address@hidden> writes:


    >> if (defined($config{mtnsync}) && $config{mtnsync}) { +
    >> check_mergerc(); if (system("mtn",
    >> "--root=$config{mtnrootdir}", "sync", - "--quiet",
    >> "--ticker=none", + "--quiet", "--ticker=none", "--rcfile",
    >> $config{mtnmergerc}, "--key", $config{mtnkey}) != 0) {
    >> debug("monotone sync failed before update");
    >> }

    William> Not sure that bit is required.  I was just going through and adding
    William> the -rcfile arg to everything so that if more got added
    William> there in future it wasn't confusing that it was only
    William> being referenced in some places.

 190 sub rcs_update () { #{{{
 191         check_config();
 192 
 193         if (defined($config{mtnsync}) && $config{mtnsync}) {
 194                 if (system("mtn", "--root=$config{mtnrootdir}", "sync",
 195                            "--quiet", "--ticker=none", 
 196                            "--key", $config{mtnkey}) != 0) {
 197                         debug("monotone sync failed before update");
 198                 }
 199         }
 200 
 201         if (system("mtn", "--root=$config{mtnrootdir}", "update", 
"--quiet") != 0) {
 202                 debug("monotone update failed");
 203         }
 204 } #}}}

I can't help but feel this seems wrong.

In particular, it might be better without the mtn sync.

Presumably, rcs_update will be called automatically after a "mtn pull"
has occurred, by the hook, making this redundant.

Also, having rcs_update do a mtn push operation just seems wrong to
me. The push occurs after a commit...

The "mtn update" seems fine though. Assuming there aren't multiple
branches...
-- 
Brian May <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]