Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
git-repo
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux-tools
git-repo
Commits
ef40ad0e
Commit
ef40ad0e
authored
Mar 14, 2013
by
Matthias Putz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed repo program update + sync is working for single project
parent
7bf91ad2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
103 additions
and
94 deletions
+103
-94
.gitignore
.gitignore
+1
-0
workspace.xml
.idea/workspace.xml
+94
-92
portable.py
portable.py
+2
-0
sync.py
subcmds/sync.py
+6
-2
No files found.
.gitignore
View file @
ef40ad0e
bin
*.pyc
*.pyc
.repopickle_*
.repopickle_*
.idea/workspace.xml
View file @
ef40ad0e
This diff is collapsed.
Click to expand it.
portable.py
View file @
ef40ad0e
...
@@ -8,6 +8,8 @@ import os
...
@@ -8,6 +8,8 @@ import os
import
platform
import
platform
import
subprocess
import
subprocess
SYNC_REPO_PROGRAM
=
False
def
isLinux
():
def
isLinux
():
if
platform
.
system
()
==
"Windows"
:
if
platform
.
system
()
==
"Windows"
:
return
False
return
False
...
...
subcmds/sync.py
View file @
ef40ad0e
...
@@ -31,6 +31,7 @@ import xmlrpc
...
@@ -31,6 +31,7 @@ import xmlrpc
import
threading
as
_threading
import
threading
as
_threading
#except ImportError:
#except ImportError:
# import dummy_threading as _threading
# import dummy_threading as _threading
import
portable
try
:
try
:
import
resource
import
resource
...
@@ -578,13 +579,16 @@ later is required to fix a server side protocol bug.
...
@@ -578,13 +579,16 @@ later is required to fix a server side protocol bug.
if
not
opt
.
local_only
:
if
not
opt
.
local_only
:
to_fetch
=
[]
to_fetch
=
[]
now
=
time
.
time
()
now
=
time
.
time
()
if
_ONE_DAY_S
<=
(
now
-
rp
.
LastFetch
):
if
portable
.
SYNC_REPO_PROGRAM
and
_ONE_DAY_S
<=
(
now
-
rp
.
LastFetch
):
to_fetch
.
append
(
rp
)
to_fetch
.
append
(
rp
)
to_fetch
.
extend
(
all_projects
)
to_fetch
.
extend
(
all_projects
)
to_fetch
.
sort
(
key
=
self
.
_fetch_times
.
Get
,
reverse
=
True
)
to_fetch
.
sort
(
key
=
self
.
_fetch_times
.
Get
,
reverse
=
True
)
fetched
=
self
.
_Fetch
(
to_fetch
,
opt
)
fetched
=
self
.
_Fetch
(
to_fetch
,
opt
)
_PostRepoFetch
(
rp
,
opt
.
no_repo_verify
)
if
portable
.
SYNC_REPO_PROGRAM
:
_PostRepoFetch
(
rp
,
opt
.
no_repo_verify
)
if
opt
.
network_only
:
if
opt
.
network_only
:
# bail out now; the rest touches the working tree
# bail out now; the rest touches the working tree
return
return
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment