all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: help-gnu-emacs@gnu.org
Subject: Re: mercurial user: how do you rebase or merge using emacs?
Date: Tue, 06 Sep 2022 22:30:04 +0200	[thread overview]
Message-ID: <87ilm0z1o3.fsf@mat.ucm.es> (raw)
In-Reply-To: 83mtbcigco.fsf@gnu.org

[-- Attachment #1: Type: text/plain, Size: 4426 bytes --]



> I don't thin VC supports rebasing.  But merging is supported: see
> vc-merge (a.k.a. "C-x v m" in a vc-dir buffer).

Well yes and no (at least for hg).
Steps:

    1. vc-merge

    2. I am asked for a version to merge.

    3. I obtain 
Running "merge 5"...
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
(branch merge, don't forget to commit)

(5 because hg has also local rev numbers beside HASHES)

But the commit that is needed, cannot be done my vc, at least I am unable, vc-dir  gives.

VC backend : Hg
Working dir: ~/HGTest/Branches/Named/
Parent     : 6:d1ccbfd46e4e tip
           :  Seven
Parent     : 5:1cd3b49213c7 
           :  Six
Branch     : default
Commit     : 1 modified (merge)
Update     : (current)
Phases     : 7 draft

                         ./
    edited               test.org

But when I select, as usual the edit file and run vc-next-action I obtain 


Running "commit -m Merge

 test.org"...
abort: cannot partially commit a merge (do not specify files or patterns)

Well so I repeat the operation without selecting a file, I obtain 

Debugger entered--Lisp error: (error #("Failed (status 255): hg --config ui.report_untrust..." 65 70 (fontified t face log-edit-summary jit-lock-defer-multiline t)))
  signal(error (#("Failed (status 255): hg --config ui.report_untrust..." 65 70 (fontified t face log-edit-summary jit-lock-defer-multiline t))))
  error("Failed (%s): %s" "status 255" #("hg --config ui.report_untrusted=0 commit -m Merge\n..." 44 49 (jit-lock-defer-multiline t face log-edit-summary fontified t)))
  vc-do-command("*vc*" 0 "hg" ("/home/oub/HGTest/Branches/Named/test.org") "--config" "ui.report_untrusted=0" "commit" "-m" #("Merge\n\n" 0 5 (jit-lock-defer-multiline t face log-edit-summary fontified t)))
  apply(vc-do-command "*vc*" 0 "hg" ("/home/oub/HGTest/Branches/Named/test.org") ("--config" "ui.report_untrusted=0" "commit" "-m" #("Merge\n\n" 0 5 (jit-lock-defer-multiline t face log-edit-summary fontified t))))
  vc-hg-command(nil 0 ("/home/oub/HGTest/Branches/Named/test.org") "commit" "-m" #("Merge\n\n" 0 5 (jit-lock-defer-multiline t face log-edit-summary fontified t)))
  apply(vc-hg-command nil 0 ("/home/oub/HGTest/Branches/Named/test.org") ("commit" "-m" #("Merge\n\n" 0 5 (jit-lock-defer-multiline t face log-edit-summary fontified t))))
  vc-hg-checkin(("/home/oub/HGTest/Branches/Named/test.org") #("Summary: Merge\n" 0 7 (jit-lock-defer-multiline t face log-edit-header fontified t pabbrev-added t) 7 8 (jit-lock-defer-multiline t face log-edit-header fontified t) 8 9 (jit-lock-defer-multiline t fontified t) 9 14 (jit-lock-defer-multiline t face log-edit-summary fontified t) 14 15 (fontified t)) nil)
  apply(vc-hg-checkin (("/home/oub/HGTest/Branches/Named/test.org") #("Summary: Merge\n" 0 7 (jit-lock-defer-multiline t face log-edit-header fontified t pabbrev-added t) 7 8 (jit-lock-defer-multiline t face log-edit-header fontified t) 8 9 (jit-lock-defer-multiline t fontified t) 9 14 (jit-lock-defer-multiline t face log-edit-summary fontified t) 14 15 (fontified t)) nil))
  vc-call-backend(Hg checkin ("/home/oub/HGTest/Branches/Named/test.org") #("Summary: Merge\n" 0 7 (jit-lock-defer-multiline t face log-edit-header fontified t pabbrev-added t) 7 8 (jit-lock-defer-multiline t face log-edit-header fontified t) 8 9 (jit-lock-defer-multiline t fontified t) 9 14 (jit-lock-defer-multiline t face log-edit-summary fontified t) 14 15 (fontified t)) nil)
  #f(compiled-function (files comment) #<bytecode 0x197e0f6bebe04cfe>)(("/home/oub/HGTest/Branches/Named/test.org") #("Summary: Merge\n" 0 7 (jit-lock-defer-multiline t face log-edit-header fontified t pabbrev-added t) 7 8 (jit-lock-defer-multiline t face log-edit-header fontified t) 8 9 (jit-lock-defer-multiline t fontified t) 9 14 (jit-lock-defer-multiline t face log-edit-summary fontified t) 14 15 (fontified t)))
  vc-finish-logentry()
  funcall-interactively(vc-finish-logentry)
  call-interactively(vc-finish-logentry)
  log-edit-done()
  funcall-interactively(log-edit-done)
  call-interactively(log-edit-done nil nil)
  command-execute(log-edit-done)


So I am confused



-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

  reply	other threads:[~2022-09-06 20:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-06 16:37 mercurial user: how do you rebase or merge using emacs? Uwe Brauer
2022-09-06 17:04 ` Eli Zaretskii
2022-09-06 20:30   ` Uwe Brauer [this message]
2022-09-07  2:29     ` Eli Zaretskii
2022-09-07  6:44       ` Uwe Brauer
2022-09-08 16:24         ` [culprit found, it is the cursor] (was: mercurial user: how do you rebase or merge using emacs?) Uwe Brauer
2022-09-07 15:24 ` mercurial user: how do you rebase or merge using emacs? Marcin Borkowski
2022-09-08  6:34   ` Uwe Brauer

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=87ilm0z1o3.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=help-gnu-emacs@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 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.