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

login
register
mail settings
Submitter Boris Feld
Date July 7, 2017, 12:38 p.m.
Message ID <030b6e711be36cf764cb.1499431110@FB>
Download mbox | patch
Permalink /patch/22093/
State Changes Requested
Headers show

Comments

Boris Feld - July 7, 2017, 12:38 p.m.
# HG changeset patch
# User Boris Feld <boris.feld@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.

Patch

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 = []