On Tue, June 28, 2005 4:27 pm, Kyle Moffett said:
On Jun 28, 2005, at 14:01:57, Matt Mackall wrote:
quoted
Everything in Mercurial is an append-only log. A transaction journal
records the original length of each log so that it can be restored on
failure.
Does this mean that (excepting the "undo" feature) one could set the
ext3 "append-only" attribute on the repository files to avoid losing
data due to user account compromise?
Probably. In Git, which is a bit more flexible than Mecurial you can
chmod your objects to read-only or use the ext3 immutable setting to
protect your existing objects. You can even have a setup where objects
are archived onto write-once media like DVD and still participate in a
live repository, where new objects are written to hard disk, but older
object are (automatically) sourced from the DVD.
Sean