[PATCH 01 of 10] obsolete: clean createmarkers part about operation

Boris Feld boris.feld at octobus.net
Fri Jul 7 12:38:30 UTC 2017


# HG changeset patch
# User Boris Feld <boris.feld at octobus.net>
# Date 1499345167 -7200
#      Thu Jul 06 14:46:07 2017 +0200
# Node ID 030b6e711be36cf764cb053e1d74d71125d63076
# Parent  89796a25d4bb91fb418ad3e70faad2c586902ffb
# EXP-Topic effectflag
obsolete: clean createmarkers part about operation

I will add another experiment in createmarkers, add a comment and some blank
lines for aesthetic sake.

diff -r 89796a25d4bb -r 030b6e711be3 mercurial/obsolete.py
--- a/mercurial/obsolete.py	Mon Jul 03 11:22:00 2017 +0200
+++ b/mercurial/obsolete.py	Thu Jul 06 14:46:07 2017 +0200
@@ -989,11 +989,14 @@
         metadata = {}
     if 'user' not in metadata:
         metadata['user'] = repo.ui.username()
+
+    # Operation metadata handling
     useoperation = repo.ui.configbool('experimental',
                                       'evolution.track-operation',
                                       False)
     if useoperation and operation:
         metadata['operation'] = operation
+
     tr = repo.transaction('add-obsolescence-marker')
     try:
         markerargs = []


More information about the Mercurial-devel mailing list