运行`hg histedit`时如何在命令行上指示合并工具

如何解决运行`hg histedit`时如何在命令行上指示合并工具

在运行hg histedit时如何在命令行上指示合并工具?似乎不像--toolhg merge那样支持hg rebase标志。

解决方法

一些处理合并冲突的命令似乎没有--tool选项。我们可能应该解决这个问题。

同时,您可以将--config ui.merge=studgeeks_preferred_merge_tool用作任何命令的全局选项,以使用您喜欢的任何合并工具。

,
  1. 没事
  2. Histedit不会以hg-terms合并,而是将顺序更改合并为一个(如果需要,请折叠后)

想象一下这样的测试仓库历史记录

#Data 1
ts1 <- structure(list(Time = c("08:00:00","08:00:10","08:00:20","08:00:30","08:00:40","08:00:50"),f1 = c(-0.018,-0.016,-0.014,-0.016),f2 = c(-0.018,-0.02,-0.018,-0.018),f3 = c(-0.024,-0.024,-0.022,-0.022
),f4 = c(-0.014,-0.013,-0.011,-0.015,-0.02),f5 = c(-0.009,-0.007,-0.009,-0.009),f6 = c(-0.012,-0.012,-0.012),f7 = c(-0.017,-0.017,-0.019,-0.017)),class = "data.frame",row.names = c(NA,-6L))

#Data 2
ts2 <- structure(list(Time = c("08:00:00",f1 = c(11489L,11495L,11409L,11441L,11413L,11434L),f2 = c(11651L,11709L,11721L,11729L,11764L,11785L),f3 = c(11587L,11595L,11493L,11602L,11590L,11580L
),f4 = c(13149.5,13206,13163,13303,13140,13300),f5 = c(12093L,12081L,12014L,11894L,12047L,12050L),f6 = c(12394L,12295L,12214L,12340L,12314L,12331L)),-6L))

我想在其中获得更多的“干净的历史记录”

第1步

加入r3和r4->hg log --style compact 7[tip] dd4d044125d6 2020-09-23 18:58 +0500 lazybadger Renaming 6 1c11e58879be 2020-09-23 18:56 +0500 lazybadger Expanding b 5 4eecc2e00de0 2020-09-23 18:54 +0500 lazybadger Fix casing in a 4 c4fb7f8f9d6a 2020-09-23 18:53 +0500 lazybadger End of replacing nums by words in a 3 f153e48d474b 2020-09-23 18:53 +0500 lazybadger Start of replacing nums by words in a 2 020cf4853caf 2020-09-23 18:50 +0500 lazybadger Added file b 1 1cbe55623ca6 2020-09-23 18:48 +0500 lazybadger Added string to a 0 2248df06d3de 2020-09-23 18:47 +0500 lazybadger initial commit

hg histedit f153

结果

mess f153e48d474b 3 Replacing nums by words in a
fold c4fb7f8f9d6a 4 End of replacing nums by words in a
pick 4eecc2e00de0 5 Fix casing in a
pick 1c11e58879be 6 Expanding b
pick dd4d044125d6 7 Renaming

汇总差异(抱歉俄罗斯日期,我懒得更改它)

>hg log --style compact
6[tip]   4cc2af840d4c   2020-09-23 18:58 +0500   lazybadger
  Renaming

5   ad1f49e75863   2020-09-23 18:56 +0500   lazybadger
  Expanding b

4   6a1e1cfb767a   2020-09-23 18:54 +0500   lazybadger
  Fix casing in a

3   089e21dda924   2020-09-23 18:53 +0500   lazybadger
  Replacing nums by words in a

2   020cf4853caf   2020-09-23 18:50 +0500   lazybadger
  Added file b

1   1cbe55623ca6   2020-09-23 18:48 +0500   lazybadger
  Added string to a

0   2248df06d3de   2020-09-23 18:47 +0500   lazybadger
  initial commit

第2步

如果我现在想加入(新)3和4,我将以>hg diff -c 3 diff -r 020cf4853caf -r 089e21dda924 a.txt --- a/a.txt Ср сен 23 18:50:50 2020 +0500 +++ b/a.txt Ср сен 23 18:53:43 2020 +0500 @@ -1,4 +1,4 @@ -Line 1 -Line 2 -Line 3 -Line 4 +Line one +Line two +Line three +Line four 的相同方式进行

>hg histedit 089e

结果

mess 089e21dda924 3 Replacing nums by words in a
roll 6a1e1cfb767a 4 Fix casing in a
pick ad1f49e75863 5 Expanding b
mess 4cc2af840d4c 6 Renaming

在流程中没有合并,因为我有源,一组更改,而不是两个具有不同历史记录的源

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


依赖报错 idea导入项目后依赖报错,解决方案:https://blog.csdn.net/weixin_42420249/article/details/81191861 依赖版本报错:更换其他版本 无法下载依赖可参考:https://blog.csdn.net/weixin_42628809/a
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下 2021-12-03 13:33:33.927 ERROR 7228 [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPL
错误1:gradle项目控制台输出为乱码 # 解决方案:https://blog.csdn.net/weixin_43501566/article/details/112482302 # 在gradle-wrapper.properties 添加以下内容 org.gradle.jvmargs=-Df
错误还原:在查询的过程中,传入的workType为0时,该条件不起作用 &lt;select id=&quot;xxx&quot;&gt; SELECT di.id, di.name, di.work_type, di.updated... &lt;where&gt; &lt;if test=&qu
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct redisServer’没有名为‘server_cpulist’的成员 redisSetCpuAffinity(server.server_cpulist); ^ server.c: 在函数‘hasActiveC
解决方案1 1、改项目中.idea/workspace.xml配置文件,增加dynamic.classpath参数 2、搜索PropertiesComponent,添加如下 &lt;property name=&quot;dynamic.classpath&quot; value=&quot;tru
删除根组件app.vue中的默认代码后报错:Module Error (from ./node_modules/eslint-loader/index.js): 解决方案:关闭ESlint代码检测,在项目根目录创建vue.config.js,在文件中添加 module.exports = { lin
查看spark默认的python版本 [root@master day27]# pyspark /home/software/spark-2.3.4-bin-hadoop2.7/conf/spark-env.sh: line 2: /usr/local/hadoop/bin/hadoop: No s
使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams[&#39;font.sans-serif&#39;] = [&#39;SimHei&#39;] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -&gt; systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping(&quot;/hires&quot;) public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate&lt;String
使用vite构建项目报错 C:\Users\ychen\work&gt;npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-