Re: Mercurial vs Updated git HOWTO for kernel hackers
- From
Sean <seanlkml@sympatico.ca>
- Date
- Jun 28, 2005, 20:45 UTC
- Message-ID
- <3886.10.10.10.24.1119991512.squirrel@linux1>
- In-Reply-To
- <62CF578B-B9DF-4DEA-8BAD-041F357771FD@mac.com>
On Tue, June 28, 2005 4:27 pm, Kyle Moffett said:
Show 9 quoted lines
> On Jun 28, 2005, at 14:01:57, Matt Mackall wrote: >> 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