1. 首先使用hg log|more 查看要回退到的版本:
[lixinglei@bogon project]$ hg log|more
changeset: 1167:dc735d4b2c72
tag: tip
user: lixl
date: Tue Sep 17 20:04:16 2013 +0800
summary: 需求10
changeset: 1166:7a44b481d073
user: lixl
date: Tue Sep 17 19:51:52 2013 +0800
summary: 需求9
changeset: 1165:b197a7ab17e0
user: lixl
date: Tue Sep 17 19:46:35 2013 +0800
summary: bug3
changeset: 1164:e097b1d63397
user: lixl
date: Tue Sep 17 19:44:34 2013 +0800
summary: requirement 1
[lixinglei@bogon projecte]$ hg update 1165
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
但是注意,这个只是代码回退了,查看版本还是有点问题,这个有点诡异,貌似不像git那样有多种回退的方式可选择,这里暂时保留这个疑问?