unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Alfred M. Szmidt" <ams@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 66212@debbugs.gnu.org
Subject: bug#66212: 30.0.50; C-x v v and vc-diff with fossil-scm
Date: Fri, 29 Sep 2023 08:36:51 -0400	[thread overview]
Message-ID: <E1qmCjj-0007uG-Jt@fencepost.gnu.org> (raw)
In-Reply-To: <83fs2x1mha.fsf@gnu.org> (message from Eli Zaretskii on Fri, 29 Sep 2023 10:12:49 +0300)


   > From: "Alfred M. Szmidt" <ams@gnu.org>
   > Date: Tue, 26 Sep 2023 08:25:01 -0400
   > 
   > 
   > When trying to use C-x v v in a vc-diff buffer, and when the version
   > control system is Fossil (this is using GNU patch):
   > 
   > Checking in foo...
   > user-error: Patch failed: can't find file to patch at input line 5
   > Perhaps you used the wrong -p or --strip option?
   > The text leading up to this was:
   > --------------------------
   > |Index: foo
   > |==================================================================
   > |--- foo
   > |+++ foo
   > --------------------------
   > File to patch: 
   > Skip this patch? [y] 
   > Skipping patch.
   > 1 out of 1 hunk ignored
   > 
   > 
   > To reproduce, make a empty Fossil repostiroy, add and commit a file,
   > add a line, C-x v =, C-x v v.  vc-fossil has to be installed.

   Crystal ball says that vc-fossil (which is not part of Emacs, AFAICT)
   either doesn't instruct Fossil to produce root-relative file names in
   the diffs (IOW, "foo" above should actually ne "some/directory/foo"),

The file foo was in ./ -- so I think the above is correct.

   or doesn't set the default-directory of the vc-diff buffer to the
   directory of the files as named in the diffs.

I'll check that.





      reply	other threads:[~2023-09-29 12:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-26 12:25 bug#66212: 30.0.50; C-x v v and vc-diff with fossil-scm Alfred M. Szmidt
2023-09-26 13:45 ` Dmitry Gutov
2023-09-29  7:12 ` Eli Zaretskii
2023-09-29 12:36   ` Alfred M. Szmidt [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=E1qmCjj-0007uG-Jt@fencepost.gnu.org \
    --to=ams@gnu.org \
    --cc=66212@debbugs.gnu.org \
    --cc=eliz@gnu.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).