mrcrowl / vscode-hg

Integrated Mercurial source control for Visual Studio Code
MIT License
71 stars 37 forks source link

Handle conflicts with origin other than merge #147

Open hdpoliveira opened 4 years ago

hdpoliveira commented 4 years ago

The extension handles correctly conflicts coming from the merge and shelve/unshelve commands:

However, the following are not signaled as conflicts:

hdpoliveira commented 4 years ago

I'm taking a look at mercurial code to understand how it knows if a rebase is in place. Code calls API 'addunfinished' (since v5.1) to register state files, under .hg directory.

hdpoliveira commented 4 years ago

This is very useful for us to detect when abort/continue command can be run.

xorz57 commented 2 years ago

~I am having trouble getting Visual Studio Code to work as a merge tool.~

Here is my .hgrc

[ui]
username = George Fotopoulos <xorzfiveseven@gmail.com>
merge = code

[merge-tools]
code.priority = 100
code.gui = False
code.executable = code
code.args = --wait --merge $local $other $base $output

vimdiff.priority = 80
vimdiff.gui = False
vimdiff.executable = vim
vimdiff.args = -d $base $local $output $other +close +close

[extensions]
histedit =
rebase =
strip =
purge =

@hdpoliveira what is yours?

hdpoliveira commented 2 years ago

Hi @xorz57 ,

I recently noticed this feature stopped working as well. I'm not sure at what version of vscode it got broken