Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mercurial-devel
Manage
Activity
Members
Labels
Plan
Wiki
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
Environments
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
mercurial-devel
Commits
0793d763e413
Commit
0793d763e413
authored
14 years ago
by
timeless developer
Browse files
Options
Downloads
Patches
Plain Diff
progress: dropping superfluous space from units
parent
4c4aeaab2339
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
hgext/rebase.py
+1
-1
1 addition, 1 deletion
hgext/rebase.py
hgext/relink.py
+2
-2
2 additions, 2 deletions
hgext/relink.py
tests/test-relink.t
+3
-3
3 additions, 3 deletions
tests/test-relink.t
with
6 additions
and
6 deletions
hgext/rebase.py
+
1
−
1
View file @
0793d763
...
...
@@ -155,7 +155,7 @@
pos
+=
1
if
state
[
rev
]
==
-
1
:
ui
.
progress
(
_
(
"
rebasing
"
),
pos
,
(
"
%d:%s
"
%
(
rev
,
repo
[
rev
])),
_
(
'
changesets
'
),
total
)
_
(
'
changesets
'
),
total
)
storestatus
(
repo
,
originalwd
,
target
,
state
,
collapsef
,
keepf
,
keepbranchesf
,
external
)
p1
,
p2
=
defineparents
(
repo
,
rev
,
target
,
state
,
...
...
This diff is collapsed.
Click to expand it.
hgext/relink.py
+
2
−
2
View file @
0793d763
...
...
@@ -117,7 +117,7 @@
ui
.
debug
(
_
(
'
not linkable: %s
\n
'
)
%
fn
)
continue
targets
.
append
((
fn
,
ts
.
st_size
))
ui
.
progress
(
_
(
'
pruning
'
),
pos
,
fn
,
_
(
'
files
'
),
total
)
ui
.
progress
(
_
(
'
pruning
'
),
pos
,
fn
,
_
(
'
files
'
),
total
)
ui
.
progress
(
_
(
'
pruning
'
),
None
)
ui
.
status
(
_
(
'
pruned down to %d probably relinkable files
\n
'
)
%
len
(
targets
))
...
...
@@ -160,7 +160,7 @@
continue
try
:
relinkfile
(
source
,
tgt
)
ui
.
progress
(
_
(
'
relinking
'
),
pos
,
f
,
_
(
'
files
'
),
total
)
ui
.
progress
(
_
(
'
relinking
'
),
pos
,
f
,
_
(
'
files
'
),
total
)
relinked
+=
1
savedbytes
+=
sz
except
OSError
,
inst
:
...
...
This diff is collapsed.
Click to expand it.
tests/test-relink.t
+
3
−
3
View file @
0793d763
...
...
@@ -70,5 +70,5 @@
collected 5 candidate storage files
not linkable: 00changelog.i
not linkable: 00manifest.i
pruning: data/a.i 3/5
files (60.00%)
pruning: data/a.i 3/5 files (60.00%)
not linkable: data/b.i
...
...
@@ -74,3 +74,3 @@
not linkable: data/b.i
pruning: data/dummy.i 5/5
files (100.00%)
pruning: data/dummy.i 5/5 files (100.00%)
pruned down to 2 probably relinkable files
...
...
@@ -76,5 +76,5 @@
pruned down to 2 probably relinkable files
relinking: data/a.i 1/2
files (50.00%)
relinking: data/a.i 1/2 files (50.00%)
not linkable: data/dummy.i
relinked 1 files (136 bytes reclaimed)
$ cd ..
...
...
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