all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: rms@gnu.org
Cc: schwab@linux-m68k.org, 12001@debbugs.gnu.org
Subject: bug#12001: 24.1.50; vc-diff always talks to CVS repository
Date: Tue, 21 Aug 2012 05:52:09 +0300	[thread overview]
Message-ID: <83vcgdardy.fsf@gnu.org> (raw)
In-Reply-To: <E1T3e4w-0000CZ-I1@fencepost.gnu.org>

> Date: Mon, 20 Aug 2012 22:20:26 -0400
> From: Richard Stallman <rms@gnu.org>
> Cc: 12001@debbugs.gnu.org
> 
>     make-version-backups-p only returns non-nil for VCS that don't have the
>     original version locally.
> 
>     > Indeed, vc-bzr-make-version-backups-p is not defined.
>     > Should it be?
> 
>     No VCS other than CVS should need it.
> 
> I am using bzr, and apparently bzr needs this,
> because vc-diff DOES NOT find the unmodified version
> except by connecting to the server.
> 
> So either there is some other bug,
> or vc-bzr-make-version-backups-p ought to be defined.

Since bzr has all the history of the versions locally, in the shape of
branch meta-data, you can easily recover any previous version of any
file without resorting to backup files.  For example, this puts the
last version of xdisp.c on a separate file:

   bzr cat -r -1 src/xdisp.c > src/xdisp.c.previous

Or, you want to overwrite the modified file with its last unmodified
version:

   bzr revert src/xdisp.c

(You can also use revision numbers older than -1, the last one, and
use the -r argument to "bzr revert", to recover versions older than
the last one.)

For this reason, no backup files are created in a bzr repository,
since doing so just wastes disk space.

CVS is different, because it does not store history locally, it must
go to the server for the equivalents of the above operations, which
requires you and the server to be on-line.  So with CVS, storing local
backups does have its merit.





  reply	other threads:[~2012-08-21  2:52 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-20 18:45 bug#12001: 24.1.50; vc-diff always talks to CVS repository Richard Stallman
2012-07-20 19:10 ` Andreas Schwab
2012-07-21  2:43   ` Richard Stallman
2012-07-21  8:01     ` Andreas Schwab
2012-08-19 22:29       ` Richard Stallman
2012-08-20  7:25         ` Andreas Schwab
2012-08-21  2:20           ` Richard Stallman
2012-08-21  2:52             ` Eli Zaretskii [this message]
2012-08-21  3:53               ` Glenn Morris
2012-08-21 21:22                 ` Richard Stallman
2012-08-22  2:56                   ` Eli Zaretskii
2012-08-22  3:13                     ` Glenn Morris
2012-08-22 16:26                       ` Eli Zaretskii
2012-08-22 16:33                         ` Glenn Morris
2012-08-23  2:49                       ` Richard Stallman
2012-08-23  7:09                         ` Glenn Morris
2012-08-23  7:14                           ` Glenn Morris
2012-08-23  7:16                             ` Glenn Morris
2012-08-23  8:18                           ` Paul Eggert
2012-08-24  2:17                             ` Richard Stallman
2012-08-24  4:06                               ` Paul Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83vcgdardy.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=12001@debbugs.gnu.org \
    --cc=rms@gnu.org \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.