Patchwork D532: obsolete: clean createmarkers part about operation

login
register
mail settings
Submitter phabricator
Date Oct. 1, 2017, 11:51 a.m.
Message ID <d3b88abe9f23fce67c33d9821d79ee2f@localhost.localdomain>
Download mbox | patch
Permalink /patch/24326/
State Not Applicable
Headers show

Comments

phabricator - Oct. 1, 2017, 11:51 a.m.
lothiraldan updated this revision to Diff 2256.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D532?vs=2233&id=2256

REVISION DETAIL
  https://phab.mercurial-scm.org/D532

AFFECTED FILES
  mercurial/obsolete.py

CHANGE DETAILS




To: lothiraldan, #hg-reviewers, pulkit, durin42
Cc: pulkit, mercurial-devel

Patch

diff --git a/mercurial/obsolete.py b/mercurial/obsolete.py
--- a/mercurial/obsolete.py
+++ b/mercurial/obsolete.py
@@ -1029,10 +1029,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 = []