- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
集市有精彩uncommit
命令,它只是撤消最后一次提交。 Mercurial 中是否有任何等价物?
编辑 : Bazaar 的 uncommit 命令不会修改文件 – 它会删除最后一次提交和相关数据(例如,当您发现提交消息中存在拼写错误或没有添加应该添加的文件时,这很有用)。
例如:
$ bzr ci -m "Fixed a proooblem" <-- problem is misspelt
$ bzr uncommit
...
$ bzr ci -m "Fixed a problem" <-- Exactly as if the first commit was correct.
最佳答案
也许 hg backout tip
?我推荐 http://hgbook.red-bean.com/read/finding-and-fixing-mistakes.html有关 hg backout
的所有详细信息,它与 hg revert
有何不同,以及许多相关主题,但如果我不明白什么uncommit
确实,它似乎完全等同于 hg backout tip
.
编辑:在评论中,你现在已经澄清你想“删除历史”——这很难(除非你在平局上非常快,也许;-)......再次根据红 bean 书:
Since Mercurial treats history as accumulative—every change builds on top of all changes that preceded it—you generally can't just make disastrous changes disappear. The one exception is when you've just committed a change, and it hasn't been pushed or pulled into another repository. That's when you can safely use the hg rollback command
hg rollback
可能是更好的方法!
关于version-control - "bzr uncommit"在 Mercurial 中等效吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/918833/
我将 Npsql 与 PostgreSQL 一起使用。我想在另一个事务中查看一个事务的未提交更改。 这就是我创建连接和交易的方式: // create connection m_Connection
我想尝试使用带有 pgadmin 的 PostgreSQL 进行事务隔离。首先,我在 BEGIN 中插入了一条新记录,但没有提交。 BEGIN; INSERT INTO my_table(id,val
我仅在设备上收到以下警告: CoreAnimation: warning, deleted thread with uncommitted CATransaction; created by: 0
升级到 mariadb 10.5.11 后,我遇到了一个奇怪的索引问题。 具有两个列的简单表 Type(varchar) 和 Point(point) 类型的索引(Tindex)和点的空间索引(Pin
我在 SSMS 中打开一个新窗口并运行以下命令: SET ANSI_DEFAULTS ON GO CREATE PROCEDURE [dbo].[zzz_test2] ( @a int
我使用 SQL Server 2012。 我编写了两个查询,但是 NOLOCK 和 UnCommited 之间有什么不同? SELECT lastname, firstname FROM HR.Emp
我在 SQL 中有一个工作队列,由一些服务管理,这些服务读出要处理的条目 READPAST查询。 我最近添加了一个 UI 来检查使用 READ UNCOMMITTED 的队列状态C# 中的 NHibe
我正在使用 hibernate 进行数据库连接。现在我需要读取未提交的事务隔离,但它对我不起作用。请任何人帮助我是什么原因,我已经使用了这段代码: @org.springframework.trans
如何读取同一事务中未提交的数据。我正在使用 spring jdbc。 示例代码: @Transactional public Resource update(){ dao.updat
我在主机 1 上有一个主存储库,并对主机 2 上的存储库进行了更新。我使用 hg Push 将更改从 host2 更改为 host1 [mpenning@host2 login]$ hg push
用通俗的话说,使用的缺点和优点是什么 SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED 查询 .NET 应用程序和报告服务应用程序? 最佳答案 此隔离级
我有一个文件,version.txt 和其他文件。我更改了其他文件,但没有触及 version.txt。 因此,我尝试推送提交,但看到了 Remote heads 错误。 (有一个修改 version
我们有 2 个脚本/mysql 连接从表中获取行。一旦一个脚本获取了一些行,另一个脚本就不能访问这些行。 到目前为止,我所得到的似乎有效的是: SET SESSION TRANSACTION ISOL
我有一个正在开发的存储过程,有多个 UNION ALL声明。这是历史数据,我被指示使用 SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED .搁置关于这是
集市有精彩uncommit命令,它只是撤消最后一次提交。 Mercurial 中是否有任何等价物? 编辑 : Bazaar 的 uncommit 命令不会修改文件 – 它会删除最后一次提交和相关数据(
我知道快照隔离可以解决这个问题,但我想知道 NOLOCK 在这种特定情况下是否安全,这样我就可以避免开销。 我有一个看起来像这样的表: drop table Data create table Dat
场景:本地仓库,在我离开办公室之前 $ hg status M important/update1 M another/important/update2 M work/in/progress 我想提
我有两种 JPA 存储库方法,一种方法更新记录并进行 I/O 操作。另一种方法是从Postgres数据库中读取一条记录,但这里我想允许脏读。 下面的代码是实验性的,不是生产级的。 触发 JPA 存储库
我有两个分支机构。 默认和dev。 default 是主分支,dev 是开发分支。现在我在开发中做了一些事情,并 promise 并插入与 tortoisehg 的开发。 现在我想将 dev merg
我正在使用以下查询: SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED ; SELECT * FROM TABLE_NAME ; SET
我是一名优秀的程序员,十分优秀!