Patchwork [3,of,7,evolve-ext] _evolvestatedelete

login
register
mail settings
Submitter Shusen LIU
Date Dec. 7, 2015, 1:46 a.m.
Message ID <2acfda7f8e3df859d9a8.1449452808@dev1221.lla1.facebook.com>
Download mbox | patch
Permalink /patch/11881/
State Rejected, archived
Delegated to: Laurent Charignon
Headers show

Comments

Shusen LIU - Dec. 7, 2015, 1:46 a.m.
# HG changeset patch
# User Shusen LIU <liushusen@fb.com>
# Date 1449450847 28800
#      Sun Dec 06 17:14:07 2015 -0800
# Node ID 2acfda7f8e3df859d9a8cfc29cc4c90912537098
# Parent  4b328ecda544c3b06587ea6825031fcd8c960932
_evolvestatedelete

Patch

diff --git a/hgext/evolve.py b/hgext/evolve.py
--- a/hgext/evolve.py
+++ b/hgext/evolve.py
@@ -3674,3 +3674,6 @@ 
         repo._bookmarks[book] = dest.node()
     if oldbookmarks or destbookmarks:
         repo._bookmarks.recordchange(tr)
+
+def _evolvestatedelete(repo):
+    util.unlinkpath(repo.join('evolvestate'), ignoremissing=True)