all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Need vc-make-backup-files-when-linked
@ 2009-03-18 10:47 Neal Becker
  2009-03-18 11:59 ` Miles Bader
  0 siblings, 1 reply; 2+ messages in thread
From: Neal Becker @ 2009-03-18 10:47 UTC (permalink / raw)
  To: emacs-devel

It is commonly recommended to use cp -al to make local clones when using 
mercurial.  emacs will not break the hard  links when files are edited, 
because vc-make-backup-files is usually nil.

We should have vc-make-backup-files-when-linked, which defaults to t, so that 
emacs will normally break the links.  This is the behavior users will 
expect.






^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Need vc-make-backup-files-when-linked
  2009-03-18 10:47 Need vc-make-backup-files-when-linked Neal Becker
@ 2009-03-18 11:59 ` Miles Bader
  0 siblings, 0 replies; 2+ messages in thread
From: Miles Bader @ 2009-03-18 11:59 UTC (permalink / raw)
  To: Neal Becker; +Cc: emacs-devel

Neal Becker <ndbecker2@gmail.com> writes:
> It is commonly recommended to use cp -al to make local clones when using 
> mercurial.  emacs will not break the hard  links when files are edited, 
> because vc-make-backup-files is usually nil.

I think the default setting of `vc-make-backup-files' (nil) is quite
dangerous for another reason too:  backup files and commits often do not
have the same granularity, and if a user happens to edit for a long
period of time before committing, there's a good chance they'll get
screwed.

This is especially true with source-control systems like CVS or
Subversion that do not allow cheap/undoable local commits, but even for
more modern systems, I don't think Emacs should be making such a
dangerous assumptions (that they commit often, and so do not need Emacs
backup files) about the users' work habits.

Even in the case where a user has commited some changes, I don't think
one can simply assume that the repository contents obviates the need for
backup files -- for instance, I've grovelled through old emacs backup
files trying to find some changes I had made a few days, but erased
before commiting...

-Miles

-- 
The car has become... an article of dress without which we feel uncertain,
unclad, and incomplete.  [Marshall McLuhan, Understanding Media, 1964]




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-18 11:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-18 10:47 Need vc-make-backup-files-when-linked Neal Becker
2009-03-18 11:59 ` Miles Bader

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.