Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
hg-git
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
hg-git
Commits
296349f4
Commit
296349f4
authored
9 years ago
by
Sean Farley
Browse files
Options
Downloads
Patches
Plain Diff
push: better formatting of messages from the server
parent
7a767993
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hggit/git_handler.py
+14
-2
14 additions, 2 deletions
hggit/git_handler.py
with
14 additions
and
2 deletions
hggit/git_handler.py
+
14
−
2
View file @
296349f4
...
...
@@ -53,6 +53,8 @@
RE_AUTHOR_FILE
=
re
.
compile
(
'
\s*=\s*
'
)
CALLBACK_BUFFER
=
''
class
GitProgress
(
object
):
"""
convert git server progress strings into mercurial progress
"""
def
__init__
(
self
,
ui
):
...
...
@@ -1003,4 +1005,13 @@
return
self
.
git
.
object_store
.
generate_pack_contents
(
have
,
want
)
def
callback
(
remote_info
):
# dulwich (perhaps git?) wraps remote output at a fixed width but
# signifies the end of transmission with a double new line
global
CALLBACK_BUFFER
if
remote_info
and
not
remote_info
.
endswith
(
'
\n\n
'
):
CALLBACK_BUFFER
+=
remote_info
return
remote_info
=
CALLBACK_BUFFER
+
remote_info
CALLBACK_BUFFER
=
''
if
not
remote_info
:
...
...
@@ -1006,6 +1017,7 @@
if
not
remote_info
:
remote_info
=
''
for
line
in
remote_info
.
split
(
'
\n
'
):
remote_info
=
'
\n
'
for
line
in
remote_info
[:
-
1
].
split
(
'
\n
'
):
self
.
ui
.
status
(
_
(
"
remote: %s
\n
"
)
%
line
)
try
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment