[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] commit and sink in same transaction
From: |
Ludovic Brenta |
Subject: |
Re: [Monotone-devel] commit and sink in same transaction |
Date: |
Tue, 24 Mar 2009 09:13:10 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Zack Weinberg <address@hidden> writes:
> 2009/3/23 serg <address@hidden>:
>> Hi. Can I synchronize (serve, pull, ...) the repository and do commit
>> changes in same transaction without data loss through software API?
>> Thanks.
>
> No, but the question as phrased makes no sense in monotone's
> framework, so I suspect you're thinking about the task the wrong way.
> If you explain your larger goals we may be able to tell you how to do
> "what you really want."
I suspect what the OP wants is to automatically push to a remote
database every commit on the local database. This looks possible with
the note_commit hook; see http://monotone.ca/docs/Hooks.html#Hooks
(but I don't know enough of Lua or hooks to be sure hooks can call
back into monotone to, e.g., sync).
--
Ludovic Brenta.