Skip to content

Commit 9799689

Browse files
committed
Translated section 9.2.4 (Importing from Perforce).
1 parent 613c40d commit 9799689

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

book/09-git-and-other-scms/sections/import-p4.asc

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
[[_perforce_import]]
22
==== Perforce
33

4-
(((Perforce)))(((Importing, from Perforce)))
5-
The next system you'll look at importing from is Perforce.
6-
As we discussed above, there are two ways to let Git and Perforce talk to each other: git-p4 and Perforce Git Fusion.
4+
(((Perforce)))(((Εσιαγωγή αποθετηρίου, από Perforce)))
5+
Το επόμενο σύστημα από το οποίο θα εξετάσουμε την εισαγωγή είναι το Perforce.
6+
Όπως συζητήσαμε παραπάνω, υπάρχουν δύο τρόποι να αφήσουμε τα Git και Perforce να μιλήσουν μεταξύ τους: οι `git-p4` και Perforce Git Fusion.
77

88
===== Perforce Git Fusion
99

10-
Git Fusion makes this process fairly painless.
11-
Just configure your project settings, user mappings, and branches using a configuration file (as discussed in <<_p4_git_fusion>>), and clone the repository.
12-
Git Fusion leaves you with what looks like a native Git repository, which is then ready to push to a native Git host if you desire.
13-
You could even use Perforce as your Git host if you like.
10+
Το Git Fusion καθιστά αυτή τη διαδικασία αρκετά ανώδυνη.
11+
Απλά διαμορφώνουμε τις ρυθμίσεις του έργου, τις αντιστοιχίσεις χρηστών και τους κλάδους μας χρησιμοποιώντας ένα αρχείο διαμόρφωσης (όπως αναλύθηκε στην ενότητα <<_p4_git_fusion>>) και κλωνοποιούμε το αποθετήριο.
12+
Το Git Fusion μας αφήνει με κάτι που μοιάζει με εγγενές αποθετήριο Git, το οποίο είναι έτοιμο να ωθήσει σε έναν εγγενή κεντρικό υπολογιστή Git, εφόσον το επιθυμούμε.
13+
Θα μπορούσαμε ακόμη και να χρησιμοποιήσουμε το Perforce ως τον κεντρικό υπολογιστή του Git, αν θέλουμε.
1414

1515
[[_git_p4]]
1616
===== Git-p4
1717

18-
Git-p4 can also act as an import tool.
19-
As an example, we'll import the Jam project from the Perforce Public Depot.
20-
To set up your client, you must export the P4PORT environment variable to point to the Perforce depot:
18+
Το Git-p4 μπορεί επίσης να λειτουργήσει ως εργαλείο εισαγωγής.
19+
Για παράδειγμα, θα εισάγουμε το έργο Jam από το Δημόσια Αποθήκη Perforce (Perforce Public Depot).
20+
Για να ρυθμίσουμε τον πελάτη μας, πρέπει να εξάγουμε τη μεταβλητή περιβάλλοντος `P4PORT` για να δείξουμε στην αποθήκη Perforce:
2121

2222
[source,console]
2323
----
@@ -26,12 +26,12 @@ $ export P4PORT=public.perforce.com:1666
2626

2727
[NOTE]
2828
====
29-
In order to follow along, you'll need a Perforce depot to connect with.
30-
We'll be using the public depot at public.perforce.com for our examples, but you can use any depot you have access to.
29+
Για τη συνέχεια της επίδειξης, θα χρειαστεί να συνδεθούμε σε μία αποθήκη Perforce.
30+
Θα χρησιμοποιήσουμε τη δημόσια αποθήκη στο public.perforce.com για τα παραδείγματα μας, αλλά μπορούμε να χρησιμοποιήσουμε οποιαδήποτε αποθήκη στην οποία έχουμε πρόσβαση.
3131
====
3232

33-
(((git commands, p4)))
34-
Run the `git p4 clone` command to import the Jam project from the Perforce server, supplying the depot and project path and the path into which you want to import the project:
33+
(((εντολές git, p4)))
34+
Εκτελούμε την εντολή `git p4 clone` για να εισάγουμε το έργο Jam από τον διακομιστή Perforce, παρέχοντας την αποθήκη, τη διαδρομή έργου και τη διαδρομή στην οποία θέλουμε να εισάγουμε το έργο:
3535

3636
[source,console]
3737
----
@@ -42,11 +42,11 @@ Import destination: refs/remotes/p4/master
4242
Importing revision 9957 (100%)
4343
----
4444

45-
This particular project has only one branch, but if you have branches that are configured with branch views (or just a set of directories), you can use the `--detect-branches` flag to `git p4 clone` to import all the project's branches as well.
46-
See <<_git_p4_branches>> for a bit more detail on this.
45+
Αυτό το συγκεκριμένο έργο έχει μόνο έναν κλάδο, αλλά αν έχουμε κλάδους που έχουν διαμορφωθεί με προβολές κλάδων (ή απλώς ένα σύνολο καταλόγων), μπορούμε να χρησιμοποιήσουμε τη σημαία `--detect-branches` στην `git p4 clone` για να εισάγουμε όλους τους κλάδους του έργου.
46+
Βλ. ενότητα <<_git_p4_branches>> για λίγο περισσότερες λεπτομέρειες σχετικά με αυτό.
4747

48-
At this point you're almost done.
49-
If you go to the `p4import` directory and run `git log`, you can see your imported work:
48+
Σε αυτό το σημείο είμαστε σχεδόν έτοιμοι.
49+
Εάν μεταβούμε στον κατάλογο `p4import` και εκτελέσουμε την `git log`, μπορούμε να δούμε την εργασία που εισάγαμε:
5050

5151
[source,console]
5252
----
@@ -68,11 +68,11 @@ Date: Tue Jul 7 01:35:51 2009 -0800
6868
[git-p4: depot-paths = "//public/jam/src/": change = 7304]
6969
----
7070

71-
You can see that `git-p4` has left an identifier in each commit message.
72-
It's fine to keep that identifier there, in case you need to reference the Perforce change number later.
73-
However, if you'd like to remove the identifier, now is the time to do so – before you start doing work on the new repository.
74-
(((git commands, filter-branch)))
75-
You can use `git filter-branch` to remove the identifier strings en masse:
71+
Μπορούμε να δούμε ότι το `git-p4` έχει αφήσει ένα αναγνωριστικό σε κάθε μήνυμα υποβολής.
72+
Μπορούμε να διατηρήσουμε αυτό το αναγνωριστικό εκεί, σε περίπτωση που χρειάζεται να αναφερθούμε αργότερα στον αριθμό αλλαγής Perforce.
73+
Ωστόσο, αν θέλουμε να καταργήσουμε το αναγνωριστικό, τώρα είναι η κατάλληλη στιγμή να το κάνουμε --προτού αρχίσουμε να εργαζόμαστε στο νέο αποθετήριο.
74+
(((εντολές git, filter-branch)))
75+
Μπορούμε να χρησιμοποιήσουμε τhn `git filter-branch` για να αφαιρέσουμε τις σειρές αναγνωριστικών μαζικά:
7676

7777
[source,console]
7878
----
@@ -81,7 +81,7 @@ Rewrite e5da1c909e5db3036475419f6379f2c73710c4e6 (125/125)
8181
Ref 'refs/heads/master' was rewritten
8282
----
8383

84-
If you run `git log`, you can see that all the SHA-1 checksums for the commits have changed, but the `git-p4` strings are no longer in the commit messages:
84+
Αν εκτελέσουμε την `git log`, μπορούμε να δούμε ότι όλα τα αθροίσματα ελέγχου SHA-1 για τις υποβολές έχουν αλλάξει αλλά οι συμβολοσειρές `git-p4` δεν βρίσκονται πλέον στα μηνύματα commit:
8585

8686
[source,console]
8787
----
@@ -99,4 +99,4 @@ Date: Tue Jul 7 01:35:51 2009 -0800
9999
Fix spelling error on Jam doc page (cummulative -> cumulative).
100100
----
101101

102-
Your import is ready to push up to your new Git server.
102+
Η εισαγωγή μας είναι έτοιμη να ωθηθεί στον νέο μας διακομιστή Git.

0 commit comments

Comments
 (0)