[Bug 5133] New: subpaths substitution in .hgsub done twice
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Thu Mar 10 20:40:26 UTC 2016
https://bz.mercurial-scm.org/show_bug.cgi?id=5133
Bug ID: 5133
Summary: subpaths substitution in .hgsub done twice
Product: Mercurial
Version: 3.1.2
Hardware: PC
OS: Linux
Status: UNCONFIRMED
Severity: bug
Priority: wish
Component: Mercurial
Assignee: bugzilla at selenic.com
Reporter: bjorn.furugard at gmail.com
CC: mercurial-devel at selenic.com
When using subpaths regex substitution in .hgsub, substitution is done twice
for each path when trying to push to central location.
To reproduce:
Create repo A with subrepos B and C.
.hgsub in A:
B = B
C = C
[subpaths]
^(.*)/([^/]*)/([^/]*)$ = \1/\3
The subpaths in this example will remove the A in the path to flatten the
destination directory structure (see
https://www.mercurial-scm.org/wiki/Subrepository#Use_.27trivial.27_subrepo_paths_where_possible
for a similar example)
Commit all repositories and push to a central location (where the repository
structure is flat, that is A, B and C repositories are in the same directory).
Expected outcome:
All repositories will be successfully pushed.
Probable outcome:
pushing to /my/central/location/a
pushing subrepo B to /my/central/b
abort: repository /my/central/b not found!
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list