[issue2241] Cannot push changes when the repository has an SVN subrepo

ronnix bugs at mercurial.selenic.com
Fri Jun 18 14:16:57 CDT 2010


New submission from ronnix <ronan.amicel at gmail.com>:

When I create a subversion subrepository in my hg repository, I can clone
that repository, but can not push further changesets to the clone. (The push
silently fails.)

The clone, however, can pull changes from the original repository.

Edited transcript follows.

No extensions are enabled.

-----

$ hg --version
Mercurial Distributed SCM (version 1.5.4)

Copyright (C) 2005-2010 Matt Mackall <mpm at selenic.com> and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


$ hg init repo

$ cd repo

$ svn co http://svn.apache.org/repos/asf/subversion/trunk subversion
A    subversion/get-deps.sh
A    subversion/NOTICE
A    subversion/LICENSE
(...)

$ echo "subversion = [svn]http://svn.apache.org/repos/asf/subversion/trunk"
>.hgsub

$ hg add .hgsub

$ hg ci -mtest
committing subrepository subversion

$ hg clone . ../repo2
updating to branch default
A    ../repo2/subversion/get-deps.sh
A    ../repo2/subversion/NOTICE
A    ../repo2/subversion/LICENSE
(...)
 U   ../repo2/subversion
Checked out revision 956097.
2 files updated, 0 files merged, 0 files removed, 0 files unresolved

$ touch file.txt

$ hg add file.txt

$ hg ci -mtest
committing subrepository subversion

$ hg outgoing ../repo2
comparaison avec ../repo2
searching for changes
changeset:   1:4e30497053b2
tag:         tip
user:        ######
date:        Fri Jun 18 21:09:08 2010 +0200
summary:     test

$ hg push ../repo2 
pushing to ../repo2

$ hg push -v ../repo2 
pushing to ../repo2

$ hg push --debug ../repo2 
pushing to ../repo2

$ hg outgoing ../repo2
comparaison avec ../repo2
searching for changes
changeset:   1:4e30497053b2
tag:         tip
user:        ######
date:        Fri Jun 18 21:09:08 2010 +0200
summary:     test

$ cd ../repo2

$ hg pull ../repo
pulling from ../repo
searching for changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
(run 'hg update' to get a working copy)

----------
messages: 12847
nosy: ronnix
priority: bug
status: unread
title: Cannot push changes when the repository has an SVN subrepo
topic: push, subrepo, subrepositories, svn

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2241>
____________________________________________________


More information about the Mercurial-devel mailing list