Hello all. I really like the interactive committing feature and use it
a lot. Is there a similar feature to revert some changes? As an
example, I've messed about with the hg repo:

---------------------------------------------------------------

diff -r 9af1acc1ffab mercurial/ancestor.py
--- a/mercurial/ancestor.py     Mon Aug 05 20:08:23 2024 +0200
+++ b/mercurial/ancestor.py     Thu Aug 08 17:00:26 2024 +0100
@@ -4,6 +4,8 @@
 #
 # This software may be used and distributed according to the terms of
the # GNU General Public License version 2 or any later version.
+# this has been added by me
+# and this line too
 
 
 import heapq
diff -r 9af1acc1ffab mercurial/cacheutil.py
--- a/mercurial/cacheutil.py    Mon Aug 05 20:08:23 2024 +0200
+++ b/mercurial/cacheutil.py    Thu Aug 08 17:00:26 2024 +0100
@@ -21,3 +21,7 @@ def cachetocopy(srcrepo):
     cachefiles += [b'tags2-%s' % f for f in repoview.filtertable]
     cachefiles += [b'hgtagsfnodes1']
     return cachefiles
+
+# added some stuff down here
+# blah blah
+# finsished work
diff -r 9af1acc1ffab mercurial/config.py
--- a/mercurial/config.py       Mon Aug 05 20:08:23 2024 +0200
+++ b/mercurial/config.py       Thu Aug 08 17:00:26 2024 +0100
@@ -4,7 +4,7 @@
 #
 # This software may be used and distributed according to the terms of
the # GNU General Public License version 2 or any later version.
-
+# I added this but don't want it anymore
 
 import errno
 import os
@@ -21,6 +21,7 @@ from . import (
     util,
 )
 
+# I want to keep this part here only
 
 class config:
     def __init__(self, data=None):

-----------------------------------------------------------------

Let's say I want to only keep the second change in config.py and scrap
everything else as a bad idea. Is this possible?

Thanks.
_______________________________________________
Mercurial mailing list
Mercurial@lists.mercurial-scm.org
https://lists.mercurial-scm.org/mailman/listinfo/mercurial

Reply via email to