obsolete: clean createmarkers part about operation
authorBoris Feld <boris.feld@octobus.net>
Thu, 06 Jul 2017 14:46:07 +0200
changeset 34388 ddcef6d0b0ef
parent 34387 c4594d38b2da
child 34389 e16ad1576d71
obsolete: clean createmarkers part about operation I will add another experiment in createmarkers, add a comment and some blank lines for aesthetic sake. Differential Revision: https://phab.mercurial-scm.org/D532
mercurial/obsolete.py
--- a/mercurial/obsolete.py	Sat Sep 30 12:58:06 2017 -0400
+++ b/mercurial/obsolete.py	Thu Jul 06 14:46:07 2017 +0200
@@ -1028,10 +1028,13 @@
         metadata = {}
     if 'user' not in metadata:
         metadata['user'] = repo.ui.username()
+
+    # Operation metadata handling
     useoperation = repo.ui.configbool('experimental',
         'stabilization.track-operation')
     if useoperation and operation:
         metadata['operation'] = operation
+
     tr = repo.transaction('add-obsolescence-marker')
     try:
         markerargs = []