Subversion

Kiểm tra các thay đổi trên bản làm việc của bạn (chi tiết)

Bạn có thể dùng svn diff [thành_phần_muốn_kiểm_tra]để có thông tin chi tiết về các thay đổi của bạn

$ svn diff
Index: bar.c
===================================================================
--- bar.c (revision 3)
+++ bar.c (working copy)
@@ -1,7 +1,12 @@
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+
+#include <stdio.h>

int main(void) {
- printf(“Sixty-four slices of American Cheese…\n”);
+ printf(“Sixty-five slices of American Cheese…\n”);
return 0;
}

Index: README
===================================================================
— README (revision 3)
+++ README (working copy)
@@ -193,3 +193,4 @@
+Note to self: pick up laundry.

Index: stuff/fish.c
===================================================================
— stuff/fish.c (revision 1)
+++ stuff/fish.c (working copy)
-Welcome to the file known as ‘fish’.
-Information on fish will be here soon.

Index: stuff/things/bloo.h
===================================================================
— stuff/things/bloo.h (revision 8)
+++ stuff/things/bloo.h (working copy)
+Here is a new file to describe
+things about bloo.

Để tạo tập tin “patch” – chứa các thông tin thay đổi của bản làm việc bạn dùng lệnh

  • svn diff > tên_tập_tin_patch
0 Comments

No comments yet.

Leave a Reply