You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If it is not available, you can download it at address https://pypi.python.org/pypi/fastimport/.
55
+
اگر در دسترس نیست، میتوانید آن را از آدرس https://pypi.python.org/pypi/fastimport/.
56
56
57
-
In the second case (on Windows), `bzr-fastimport` is automatically installed with the standalone version and the default installation (let all the checkboxes checked).
58
-
So in this case you have nothing to do.
57
+
در حالت دوم (در ویندوز)، افزونه bzr-fastimport بهصورت خودکار همراه با نسخه مستقل (standalone) و نصب پیشفرض (در صورتی که تمام چکباکسها تیکخورده باقی بمانند) نصب میشود.
58
+
بنابراین در این حالت، نیازی به انجام کار خاصی ندارید.
59
59
60
-
At this point, the way to import a Bazaar repository differs according to that you have a single branch or you are working with a repository that has several branches.
60
+
در این مرحله، روش وارد کردن یک مخزن Bazaar بسته به این که فقط یک شاخه داشته باشید یا با مخزنی با چندین شاخه کار میکنید، متفاوت است.
61
61
62
-
===== Project with a single branch
62
+
===== Project with a single branch (پروژه با یک شاخه واحد)
63
63
64
-
Now `cd` in the directory that contains your Bazaar repository and initialize the Git repository:
64
+
اکنون `cd` در دایرکتوری که مخزن بازار شما در آن قرار دارد و مخزن گیت را راهاندازی کنید:
65
65
66
66
[source,console]
67
67
----
68
68
$ cd /path/to/the/bzr/repository
69
69
$ git init
70
70
----
71
71
72
-
Now, you can simply export your Bazaar repository and convert it into a Git repository using the following command:
72
+
اکنون، میتوانید به سادگی مخزن بازار خود را صادر کرده و آن را به یک مخزن گیت تبدیل کنید با استفاده از دستور
73
+
زیر:
73
74
74
75
[source,console]
75
76
----
76
77
$ bzr fast-export --plain . | git fast-import
77
78
----
78
79
79
-
Depending on the size of the project, your Git repository is built in a lapse from a few seconds to a few minutes.
80
+
بسته به اندازه پروژه، مخزن Git شما در بازهای از چند ثانیه تا چند دقیقه ساخته میشود.
80
81
81
-
===== Case of a project with a main branch and a working branch
82
-
83
-
You can also import a Bazaar repository that contains branches.
84
-
Let us suppose that you have two branches: one represents the main branch (myProject.trunk), the other one is the working branch (myProject.work).
82
+
===== Case of a project with a main branch and a working branch (حالت پروژهای با یک شاخه اصلی و یک شاخه کاری)
83
+
84
+
شما میتوانید یک مخزن Bazaar را که شامل چند شاخه است نیز وارد (import) کنید.
85
+
فرض کنیم که دو شاخه دارید: یکی شاخه اصلی را نمایش میدهد (myProject.trunk) و دیگری شاخه کاری است (myProject.work).
85
86
86
87
[source,console]
87
88
----
88
89
$ ls
89
90
myProject.trunk myProject.work
90
91
----
91
92
92
-
Create the Git repository and `cd` into it:
93
+
مخزن گیت را ایجاد کنید و با دستور `cd` به آن بروید:
Now `git branch` shows you the `master` branch as well as the `work` branch.
117
-
Check the logs to make sure they're complete and get rid of the `marks.bzr` and `marks.git` files.
117
+
اکنون دستور git branch شاخه master و همچنین شاخه work را به شما نشان میدهد.
118
+
لاگها (logs) را بررسی کنید تا مطمئن شوید همه چیز بهطور کامل منتقل شده، و سپس فایلهای marks.bzr و marks.git را حذف کنید.
118
119
119
-
===== Synchronizing the staging area
120
+
===== Synchronizing the staging area (همگامسازی ناحیه موقت)
120
121
121
-
Whatever the number of branches you had and the import method you used, your staging area is not synchronized with `HEAD`, and with the import of several branches, your working directory is not synchronized either.
122
-
This situation is easily solved by the following command:
122
+
فارغ از تعداد شاخههایی که داشتید و روشی که برای وارد کردن آنها استفاده کردید، ناحیه staging شما با `HEAD` همگام نیست، و در صورت وارد کردن چند شاخه، دایرکتوری کاری شما نیز همگام نخواهد بود.
123
+
این وضعیت بهسادگی با اجرای دستور زیر حل میشود:
123
124
124
125
[source,console]
125
126
----
126
127
$ git reset --hard HEAD
127
128
----
128
129
129
-
===== Ignoring the files that were ignored with .bzrignore
130
+
===== نادیده گرفتن فایلهایی که با .bzrignore نادیده گرفته شده بودند
131
+
132
+
حالا بیایید نگاهی به فایلهای نادیده گرفته شده بیندازیم.
133
+
اولین کاری که باید انجام دهید این است که فایل .bzrignore را به .gitignore تغییر نام دهید.
130
134
131
-
Now let's have a look at the files to ignore.
132
-
The first thing to do is to rename `.bzrignore` into `.gitignore`.
133
-
If the `.bzrignore` file contains one or several lines starting with "!!" or "RE:", you'll have to modify it and perhaps create several `.gitignore` files in order to ignore exactly the same files that Bazaar was ignoring.
135
+
اگر فایل .bzrignore شامل یک یا چند خط باشد که با "!!" یا "RE:" شروع میشوند، باید آن را ویرایش کرده و شاید نیاز باشد چند فایل .gitignore جداگانه بسازید تا دقیقاً همان فایلهایی را نادیده بگیرید که قبلاً توسط Bazaar نادیده گرفته میشدند.
134
136
135
-
Finally, you will have to create a commit that contains this modification for the migration:
137
+
در نهایت، باید یک کامیت ایجاد کنید که این تغییرات را برای ثبت فرآیند مهاجرت شامل شود:
136
138
137
139
[source,console]
138
140
----
@@ -141,10 +143,10 @@ $ # modify .gitignore if needed
141
143
$ git commit -am 'Migration from Bazaar to Git'
142
144
----
143
145
144
-
===== Sending your repository to the server
146
+
===== Sending your repository to the server (ارسال مخزن شما به سرور)
145
147
146
-
Here we are!
147
-
Now you can push the repository onto its new home server:
148
+
الان آمادهایم!
149
+
حالا میتوانید مخزن را به سرور جدید خانه خود ارسال کنید:
0 commit comments