Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mercurial-path_pattern
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
Container Registry
Model registry
Operate
Environments
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
Show more breadcrumbs
mercurial
mercurial-path_pattern
Commits
c236e743a816
Commit
c236e743a816
authored
8 years ago
by
Marcin Kasperski
Browse files
Options
Downloads
Patches
Plain Diff
Added missing newlines in some debug notes.
parent
cc2b3718bcf4
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
mercurial_path_pattern.py
+3
-3
3 additions, 3 deletions
mercurial_path_pattern.py
with
3 additions
and
3 deletions
mercurial_path_pattern.py
+
3
−
3
View file @
c236e743
...
...
@@ -196,10 +196,10 @@
ui
,
"
path_pattern
"
,
re
.
compile
(
rgxp_prefix
+
"
local
"
)):
if
prefix
not
in
self
.
patterns
:
self
.
patterns
[
prefix
]
=
PatternPair
(
prefix
)
ui
.
debug
(
_
(
"
path_pattern: Parsing local side of path pattern %s
"
)
%
prefix
)
ui
.
debug
(
_
(
"
path_pattern: Parsing local side of path pattern %s
\n
"
)
%
prefix
)
self
.
patterns
[
prefix
].
learn_local
(
value
,
ui
)
# Read «sth».remote
for
prefix
,
value
in
meu
.
rgxp_config_items
(
ui
,
"
path_pattern
"
,
re
.
compile
(
rgxp_prefix
+
"
remote
"
)):
if
prefix
not
in
self
.
patterns
:
self
.
patterns
[
prefix
]
=
PatternPair
(
prefix
)
...
...
@@ -200,10 +200,10 @@
self
.
patterns
[
prefix
].
learn_local
(
value
,
ui
)
# Read «sth».remote
for
prefix
,
value
in
meu
.
rgxp_config_items
(
ui
,
"
path_pattern
"
,
re
.
compile
(
rgxp_prefix
+
"
remote
"
)):
if
prefix
not
in
self
.
patterns
:
self
.
patterns
[
prefix
]
=
PatternPair
(
prefix
)
ui
.
debug
(
_
(
"
path_pattern: Parsing remote side of path pattern %s
"
)
%
prefix
)
ui
.
debug
(
_
(
"
path_pattern: Parsing remote side of path pattern %s
\n
"
)
%
prefix
)
self
.
patterns
[
prefix
].
learn_remote
(
value
,
ui
)
# Read «sth».enforce
for
prefix
,
value
in
meu
.
rgxp_configbool_items
(
...
...
@@ -266,7 +266,7 @@
"
\n
"
.
join
(
self
.
patterns
[
pname
].
describe
()
for
pname
in
sorted
(
self
.
patterns
.
keys
())),
_
(
"
[*]-marked patterns are enforced over .hg/hgrc
"
)
if
has_enforced
else
""
,
_
(
"
[*]-marked patterns are enforced over .hg/hgrc
\n
"
)
if
has_enforced
else
""
,
))
else
:
ui
.
status
(
_
(
"
No path patterns defined. Add [path_pattern] section to ~/.hgrc
\n
"
))
...
...
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