Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hg-pull-mirror-test2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Admin message
This instance will be upgraded to Heptapod 17.9.0rc1 on 2025-03-27 between 17:00 and 18:00 UTC+2
Show more breadcrumbs
heptapod
Testing Projects
hg-pull-mirror-test2
Commits
012dbf88b9b2
Commit
012dbf88b9b2
authored
17 years ago
by
Matt Mackall
Browse files
Options
Downloads
Patches
Plain Diff
remove unneeded imports of mdiff
parent
090ef15e1a03
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mercurial/localrepo.py
+3
-6
3 additions, 6 deletions
mercurial/localrepo.py
mercurial/verify.py
+1
-1
1 addition, 1 deletion
mercurial/verify.py
with
4 additions
and
7 deletions
mercurial/localrepo.py
+
3
−
6
View file @
012dbf88
...
...
@@ -9,7 +9,7 @@
from
i18n
import
_
import
repo
,
changegroup
import
changelog
,
dirstate
,
filelog
,
manifest
,
context
,
weakref
import
re
,
lock
,
transaction
,
tempfile
,
stat
,
mdiff
,
errno
,
ui
import
re
,
lock
,
transaction
,
tempfile
,
stat
,
errno
,
ui
import
os
,
revlog
,
time
,
util
,
extensions
,
hook
class
localrepository
(
repo
.
repository
):
...
...
@@ -1615,5 +1615,5 @@
if
r
==
next_rev
[
0
]:
# If the last rev we looked at was the one just previous,
# we only need to see a diff.
delta
=
mdiff
.
patchtext
(
mnfst
.
delta
(
mnfstnode
)
)
delta
mf
=
mnfst
.
read
delta
(
mnfstnode
)
# For each line in the delta
...
...
@@ -1619,8 +1619,5 @@
# For each line in the delta
for
dline
in
delta
.
splitlines
():
# get the filename and filenode for that line
f
,
fnode
=
dline
.
split
(
'
\0
'
)
fnode
=
bin
(
fnode
[:
40
])
for
f
,
fnode
in
deltamf
.
items
():
f
=
changedfiles
.
get
(
f
,
None
)
# And if the file is in the list of files we care
# about.
...
...
This diff is collapsed.
Click to expand it.
mercurial/verify.py
+
1
−
1
View file @
012dbf88
...
...
@@ -7,7 +7,7 @@
from
node
import
*
from
i18n
import
_
import
revlog
,
mdiff
import
revlog
def
verify
(
repo
):
lock
=
repo
.
lock
()
...
...
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