##// END OF EJS Templates
subrepo: change default path in hgrc of subrepo after cloning...
subrepo: change default path in hgrc of subrepo after cloning Previous behavior was to put in the cloned subrepos the path found in the original main repo. However it isn't valid for relative path and it seems more logical to reference instead the subrepos working copy path of the original main repo.

File last commit:

r10273:e898bc78 default
r10378:e1401c74 default
Show More
test-subrepo-svn.out
87 lines | 2.0 KiB | text/plain | TextLexer
/ tests / test-subrepo-svn.out
Augie Fackler
subrepo: Subversion support
r10178 % create subversion repo
Checked out revision 0.
Patrick Mezard
subrepo: handle svn externals and meta changes (issue1982)...
r10273 A src
A src/alpha
A externals
A externals/other
Adding externals
Adding externals/other
Adding src
Adding src/alpha
Transmitting file data ..
Augie Fackler
subrepo: Subversion support
r10178 Committed revision 1.
Patrick Mezard
subrepo: handle svn externals and meta changes (issue1982)...
r10273 At revision 1.
property 'svn:externals' set on 'src'
Sending src
Committed revision 2.
Augie Fackler
subrepo: Subversion support
r10178 % create hg repo
% first revision, no sub
adding a
% add first svn sub
committing subrepository s
% debugsub
path s
Patrick Mezard
subrepo: handle svn externals and meta changes (issue1982)...
r10273 source file:///root/svn-repo/src
revision 2
Augie Fackler
subrepo: Subversion support
r10178
% change file in svn and hg, commit
committing subrepository s
Sending s/alpha
Transmitting file data .
Patrick Mezard
subrepo: handle svn externals and meta changes (issue1982)...
r10273 Committed revision 3.
Fetching external item into 's/externals'
External at revision 1.
At revision 3.
Augie Fackler
subrepo: Subversion support
r10178 path s
Patrick Mezard
subrepo: handle svn externals and meta changes (issue1982)...
r10273 source file:///root/svn-repo/src
revision 3
Augie Fackler
subrepo: Subversion support
r10178
% should be empty despite change to s/a
% add a commit from svn
U alpha
Patrick Mezard
subrepo: handle svn externals and meta changes (issue1982)...
r10273
Fetching external item into 'externals'
A externals/other
Updated external to revision 1.
Updated to revision 3.
property 'svn:mime-type' set on 'alpha'
Sending src/alpha
Augie Fackler
subrepo: Subversion support
r10178 Transmitting file data .
Patrick Mezard
subrepo: handle svn externals and meta changes (issue1982)...
r10273 Committed revision 4.
Augie Fackler
subrepo: Subversion support
r10178 % this commit from hg will fail
committing subrepository s
abort: svn: Commit failed (details follow):
Patrick Mezard
subrepo: handle svn externals and meta changes (issue1982)...
r10273 svn: File '/src/alpha' is out of date
% this commit fails because of meta changes
property 'svn:mime-type' set on 's/alpha'
committing subrepository s
abort: svn: Commit failed (details follow):
svn: File '/src/alpha' is out of date
% this commit fails because of externals changes
committing subrepository s
abort: cannot commit svn externals
% this commit fails because of externals meta changes
property 'svn:mime-type' set on 's/externals/other'
committing subrepository s
abort: cannot commit svn externals
Augie Fackler
subrepo: Subversion support
r10178
% clone
updating to branch default
A s/alpha
Patrick Mezard
subrepo: handle svn externals and meta changes (issue1982)...
r10273 U s
Fetching external item into 's/externals'
A s/externals/other
Checked out external at revision 1.
Checked out revision 3.
Augie Fackler
subrepo: Subversion support
r10178 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
% debugsub in clone
path s
Patrick Mezard
subrepo: handle svn externals and meta changes (issue1982)...
r10273 source file:///root/svn-repo/src
revision 3