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
0b5287519bca
Commit
0b5287519bca
authored
6 years ago
by
Marcin Kasperski
Browse files
Options
Downloads
Patches
Plain Diff
Abort problems on 4.6
parent
fc144a88e904
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
HISTORY.txt
+2
-2
2 additions, 2 deletions
HISTORY.txt
mercurial_path_pattern.py
+4
-4
4 additions, 4 deletions
mercurial_path_pattern.py
tests/basic.t
+5
-0
5 additions, 0 deletions
tests/basic.t
with
11 additions
and
6 deletions
HISTORY.txt
+
2
−
2
View file @
0b528751
1.3.
4
1.3.
5
~~~~~~~~~~~~~
...
...
@@ -2,6 +2,6 @@
~~~~~~~~~~~~~
Tested with hg 4.5 and 4.6
Tested with hg 4.5 and 4.6
, small 4.6-related fixes (error handling)
1.3.3
~~~~~~~~~~~~~
...
...
This diff is collapsed.
Click to expand it.
mercurial_path_pattern.py
+
4
−
4
View file @
0b528751
...
...
@@ -68,7 +68,7 @@
http://bitbucket.org/Mekk/mercurial-path_pattern/
"""
from
mercurial
import
commands
,
util
from
mercurial
import
commands
,
util
,
error
from
mercurial.i18n
import
_
import
os
import
sys
...
...
@@ -93,7 +93,7 @@
try
:
import
mercurial_extension_utils
except
ImportError
:
raise
util
.
Abort
(
_
(
"""
Can not import mercurial_extension_utils.
raise
error
.
Abort
(
_
(
"""
Can not import mercurial_extension_utils.
Please install this module in Python path.
See Installation chapter in https://bitbucket.org/Mekk/mercurial-dynamic_username/ for details
(and for info about TortoiseHG on Windows, or other bundled Python).
"""
))
...
...
@@ -347,6 +347,6 @@
known_paths
.
append
(
key
)
# Failing helpfully
if
known_paths
:
raise
util
.
Abort
(
_
(
"
Unknown alias: %s. Defined path aliases: %s
"
)
%
(
raise
error
.
Abort
(
_
(
"
Unknown alias: %s. Defined path aliases: %s
"
)
%
(
path_alias
,
"
,
"
.
join
(
known_paths
)))
else
:
...
...
@@ -351,6 +351,6 @@
path_alias
,
"
,
"
.
join
(
known_paths
)))
else
:
raise
util
.
Abort
(
_
(
"
Uknown alias: %s. No paths defined, consider creating some paths or path_patterns
"
)
%
path_alias
)
raise
error
.
Abort
(
_
(
"
Uknown alias: %s. No paths defined, consider creating some paths or path_patterns
"
)
%
path_alias
)
############################################################
# Extension setup
...
...
This diff is collapsed.
Click to expand it.
tests/basic.t
+
5
−
0
View file @
0b528751
...
...
@@ -171,3 +171,8 @@
local
:
/tmp/c
ramtests
-*
/basic.t/
work
/tree1/
{
repo
}
(
glob
)
remote:
/tmp/c
ramtests
-*
/basic.t/
work
/sub/
tree2
/
{
repo
}
(
glob
)
Error
reactions
$
hg
--
cwd
$T1
/bbb/su
b_b
/
repo_b3
cloneto
niematakiegorepo
abort:
Unknown
alias:
niematakiegorepo
.
Defined
path
aliases:
flat
,
symm
[
255
]
\ No newline at end of file
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