浏览代码

[prop140] Note another useful restriction of ed format.

Nick Mathewson 16 年之前
父节点
当前提交
9f69b3d94c
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      doc/spec/proposals/140-consensus-diffs.txt

+ 9 - 0
doc/spec/proposals/140-consensus-diffs.txt

@@ -5,6 +5,11 @@ Created: 13-Jun-2008
 Status: Accepted
 Status: Accepted
 Target: 0.2.2.x
 Target: 0.2.2.x
 
 
+0. History
+
+  22-May-2009: Restricted the ed format even more strictly for ease of
+  implementation. -nickm
+
 1. Overview.
 1. Overview.
 
 
   Tor clients and servers need a list of which relays are on the
   Tor clients and servers need a list of which relays are on the
@@ -133,6 +138,10 @@ Target: 0.2.2.x
   Note that line numbers always apply to the file after all previous
   Note that line numbers always apply to the file after all previous
   commands have already been applied.
   commands have already been applied.
 
 
+  The commands MUST apply to the file from back to front, such that
+  lines are only ever referred to by their position in the original
+  file.
+
   The "current line" is either the first line of the file, if this is
   The "current line" is either the first line of the file, if this is
   the first command, the last line of a block we added in an append or
   the first command, the last line of a block we added in an append or
   change command, or the line immediate following a set of lines we just
   change command, or the line immediate following a set of lines we just