Patchwork D532: obsolete: clean createmarkers part about operation

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

Comments

phabricator - Oct. 1, 2017, 10:55 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGddcef6d0b0ef: obsolete: clean createmarkers part about operation (authored by lothiraldan, committed by ).

REPOSITORY
  rHG Mercurial

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

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