瀏覽代碼

r18730@catbus: nickm | 2008-03-11 00:47:04 -0400
Forward-port: Fix the SVK version detection logic to work right on a branch: tolerate multiple "copied from" tags and only look at the first.


svn:r13959

Nick Mathewson 17 年之前
父節點
當前提交
4b65ea0ec0
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. 2 0
      ChangeLog
  2. 2 1
      src/or/Makefile.am

+ 2 - 0
ChangeLog

@@ -9,6 +9,8 @@ Changes in version 0.2.1.1-alpha - 2008-??-??
       Bugfix on 0.2.0.20-rc.
     - Generate "STATUS_SERVER" events rather than misspelled "STATUS_SEVER"
       events.  Caught by mwenge; bugfix on 0.1.2.x.
+    - Fix the SVK version detection logic to work correctly on a branch.
+      Bugfix on 0.2.0.x.
 
   o Minor features:
     - Allow separate log levels to be configured for different logging

+ 2 - 1
src/or/Makefile.am

@@ -74,7 +74,8 @@ micro-revision.i: FORCE
 	      break;						\
 	    else						\
 	      loc=`svk info $$location |			\
-		sed -n 's/^Copied From: \(.*\), Rev\. [0-9][0-9]*/\1/p'`; \
+		sed -n 's/^Copied From: \(.*\), Rev\. [0-9][0-9]*/\1/p' | \
+	        head -1`;					\
 	      if test x$$loc = x; then				\
 		break;						\
 	      else						\