diff tests/test-obsolete.t @ 28795:f456834b2f7e

commands: allow debugobsolete to delete arbitrary obsmarkers Sample usage is: '$ hg debugobsolete --delete 0 5' This is a debug feature that will help people working on evolution and obsolescense.
author Kostia Balytskyi <ikostia@fb.com>
date Fri, 01 Apr 2016 15:12:50 -0700
parents 6433da9c96a9
children 5a398627db92
line wrap: on
line diff
--- a/tests/test-obsolete.t	Fri Apr 01 15:20:31 2016 -0700
+++ b/tests/test-obsolete.t	Fri Apr 01 15:12:50 2016 -0700
@@ -1083,4 +1083,17 @@
   |
   @  0:a78f55e5508c (draft) [ ] 0
   
+  $ cd ..
 
+Test the --delete option of debugobsolete command
+  $ hg init dorepo
+  $ cd dorepo
+  $ echo a > a && hg ci -Am a
+  adding a
+  $ hg ci --amend -m aa
+  $ hg debugobsolete
+  cb9a9f314b8b07ba71012fcdbc544b5a4d82ff5b f9bd49731b0b175e42992a3c8fa6c678b2bc11f1 0 (.*) {'user': 'test'} (re)
+  $ hg debugobsolete --delete 0
+  Deleted 1 obsolescense markers
+  $ hg debugobsolete
+  $ cd ..