Patchwork [5,of,7,evolve-ext] _evolvestatewrite

login
register
mail settings
Submitter Shusen LIU
Date Dec. 7, 2015, 1:46 a.m.
Message ID <9f7719e2c063075b0ec9.1449452810@dev1221.lla1.facebook.com>
Download mbox | patch
Permalink /patch/11884/
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 1449450938 28800
#      Sun Dec 06 17:15:38 2015 -0800
# Node ID 9f7719e2c063075b0ec9e938ad2bb78fb0415d6c
# Parent  a724adb6f72112f1a197ff61ea9f254a69e2b5af
_evolvestatewrite

Patch

diff --git a/hgext/evolve.py b/hgext/evolve.py
--- a/hgext/evolve.py
+++ b/hgext/evolve.py
@@ -3683,3 +3683,7 @@ 
     return { 'orig': orig,
              'dest': dest,
              'commitmsg': commitmsg, }
+
+def _evolvestatewrite(repo, data):
+    repo.vfs.write('evolvestate',
+                    '|'.join([data['orig'], data['dest'], data['commitmsg']]))