Patchwork [4,of,7,evolve-ext] _evolvestateread

login
register
mail settings
Submitter Shusen LIU
Date Dec. 7, 2015, 1:46 a.m.
Message ID <a724adb6f72112f1a197.1449452809@dev1221.lla1.facebook.com>
Download mbox | patch
Permalink /patch/11882/
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 1449450884 28800
#      Sun Dec 06 17:14:44 2015 -0800
# Node ID a724adb6f72112f1a197ff61ea9f254a69e2b5af
# Parent  2acfda7f8e3df859d9a8cfc29cc4c90912537098
_evolvestateread

Patch

diff --git a/hgext/evolve.py b/hgext/evolve.py
--- a/hgext/evolve.py
+++ b/hgext/evolve.py
@@ -3677,3 +3677,9 @@ 
 
 def _evolvestatedelete(repo):
     util.unlinkpath(repo.join('evolvestate'), ignoremissing=True)
+
+def _evolvestateread(repo):
+    orig, dest, commitmsg = repo.vfs.read('evolvestate').split('|')
+    return { 'orig': orig,
+             'dest': dest,
+             'commitmsg': commitmsg, }