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
5a3954dd
Commit
5a3954dd
authored
May 19, 2014
by
Matthias Putz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/esrlabs/git-repo
parents
92551d10
445d453a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
info.py
subcmds/info.py
+3
-3
status.py
subcmds/status.py
+9
-7
No files found.
subcmds/info.py
View file @
5a3954dd
...
...
@@ -138,7 +138,7 @@ class Info(PagedCommand):
self
.
out
.
nl
()
for
c
in
localCommits
:
split
=
c
.
split
()
split
=
c
.
decode
(
'UTF-8'
)
.
split
()
self
.
sha
(
split
[
0
]
+
" "
)
self
.
text
(
" "
.
join
(
split
[
1
:]))
self
.
out
.
nl
()
...
...
@@ -150,7 +150,7 @@ class Info(PagedCommand):
self
.
out
.
nl
()
for
c
in
originCommits
:
split
=
c
.
split
()
split
=
c
.
decode
(
'UTF-8'
)
.
split
()
self
.
sha
(
split
[
0
]
+
" "
)
self
.
text
(
" "
.
join
(
split
[
1
:]))
self
.
out
.
nl
()
...
...
@@ -190,7 +190,7 @@ class Info(PagedCommand):
self
.
out
.
nl
()
for
commit
in
commits
:
split
=
commit
.
split
()
split
=
commit
.
decode
(
'UTF-8'
)
.
split
()
self
.
text
(
'{0:38}{1} '
.
format
(
''
,
'-'
))
self
.
sha
(
split
[
0
]
+
" "
)
self
.
text
(
" "
.
join
(
split
[
1
:]))
...
...
subcmds/status.py
View file @
5a3954dd
...
...
@@ -117,7 +117,7 @@ the following meanings:
status_header
=
' --
\t
'
for
item
in
dirs
:
if
not
os
.
path
.
isdir
(
item
):
outstring
.
write
(
''
.
join
([
status_header
,
item
]))
outstring
.
write
(
''
.
join
([
status_header
,
item
,
'
\n
'
]))
continue
if
item
in
proj_dirs
:
continue
...
...
@@ -126,7 +126,7 @@ the following meanings:
glob
.
glob
(
'
%
s/*'
%
item
),
\
proj_dirs
,
proj_dirs_parents
,
outstring
)
continue
outstring
.
write
(
''
.
join
([
status_header
,
item
,
'/'
]))
outstring
.
write
(
''
.
join
([
status_header
,
item
,
'/'
,
'
\n
'
]))
def
Execute
(
self
,
opt
,
args
):
all_projects
=
self
.
GetProjects
(
args
)
...
...
@@ -182,18 +182,20 @@ the following meanings:
try
:
os
.
chdir
(
self
.
manifest
.
topdir
)
outstring
=
io
.
StringIO
.
StringIO
()
outstring
=
io
.
StringIO
()
self
.
_FindOrphans
(
glob
.
glob
(
'.*'
)
+
\
glob
.
glob
(
'*'
),
\
proj_dirs
,
proj_dirs_parents
,
outstring
)
if
outstring
.
buflist
:
if
outstring
.
tell
()
>
0
:
output
=
StatusColoring
(
self
.
manifest
.
globalConfig
)
output
.
project
(
'Objects not within a project (orphans)'
)
output
.
nl
()
for
entry
in
outstring
.
buflist
:
output
.
untracked
(
entry
)
output
.
nl
()
outstring
.
seek
(
0
)
lines
=
outstring
.
readlines
()
for
line
in
lines
[
0
:
len
(
lines
)
-
1
]:
output
.
untracked
(
line
)
output
.
untracked
(
str
.
rstrip
(
lines
[
len
(
lines
)
-
1
]))
else
:
print
(
'No orphan files or directories'
)
...
...
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