(self)
| 2900 | class P4Sync(Command, P4UserMap): |
| 2901 | |
| 2902 | def __init__(self): |
| 2903 | Command.__init__(self) |
| 2904 | P4UserMap.__init__(self) |
| 2905 | self.options = [ |
| 2906 | optparse.make_option("--branch", dest="branch"), |
| 2907 | optparse.make_option("--detect-branches", dest="detectBranches", action="store_true"), |
| 2908 | optparse.make_option("--changesfile", dest="changesFile"), |
| 2909 | optparse.make_option("--silent", dest="silent", action="store_true"), |
| 2910 | optparse.make_option("--detect-labels", dest="detectLabels", action="store_true"), |
| 2911 | optparse.make_option("--import-labels", dest="importLabels", action="store_true"), |
| 2912 | optparse.make_option("--import-local", dest="importIntoRemotes", action="store_false", |
| 2913 | help="Import into refs/heads/ , not refs/remotes"), |
| 2914 | optparse.make_option("--max-changes", dest="maxChanges", |
| 2915 | help="Maximum number of changes to import"), |
| 2916 | optparse.make_option("--changes-block-size", dest="changes_block_size", type="int", |
| 2917 | help="Internal block size to use when iteratively calling p4 changes"), |
| 2918 | optparse.make_option("--keep-path", dest="keepRepoPath", action='store_true', |
| 2919 | help="Keep entire BRANCH/DIR/SUBDIR prefix during import"), |
| 2920 | optparse.make_option("--use-client-spec", dest="useClientSpec", action='store_true', |
| 2921 | help="Only sync files that are included in the Perforce Client Spec"), |
| 2922 | optparse.make_option("-/", dest="cloneExclude", |
| 2923 | action="callback", callback=cloneExcludeCallback, type="string", |
| 2924 | help="exclude depot path"), |
| 2925 | ] |
| 2926 | self.description = """Imports from Perforce into a git repository.\n |
| 2927 | example: |
| 2928 | //depot/my/project/ -- to import the current head |
| 2929 | //depot/my/project/@all -- to import everything |
| 2930 | //depot/my/project/@1,6 -- to import only from revision 1 to 6 |
| 2931 | |
| 2932 | (a ... is not needed in the path p4 specification, it's added implicitly)""" |
| 2933 | |
| 2934 | self.usage += " //depot/path[@revRange]" |
| 2935 | self.silent = False |
| 2936 | self.createdBranches = set() |
| 2937 | self.committedChanges = set() |
| 2938 | self.branch = "" |
| 2939 | self.detectBranches = False |
| 2940 | self.detectLabels = False |
| 2941 | self.importLabels = False |
| 2942 | self.changesFile = "" |
| 2943 | self.syncWithOrigin = True |
| 2944 | self.importIntoRemotes = True |
| 2945 | self.maxChanges = "" |
| 2946 | self.changes_block_size = None |
| 2947 | self.keepRepoPath = False |
| 2948 | self.depotPaths = None |
| 2949 | self.p4BranchesInGit = [] |
| 2950 | self.cloneExclude = [] |
| 2951 | self.useClientSpec = False |
| 2952 | self.useClientSpec_from_options = False |
| 2953 | self.clientSpecDirs = None |
| 2954 | self.tempBranches = [] |
| 2955 | self.tempBranchLocation = "refs/git-p4-tmp" |
| 2956 | self.largeFileSystem = None |
| 2957 | self.suppress_meta_comment = False |
| 2958 | |
| 2959 | if gitConfig('git-p4.largeFileSystem'): |
nothing calls this directly
no test coverage detected