changeset 13559:42a34c0aeddc stable

subrepo: backout 67fbe566eff1, --force requires svn >= 1.5
author Patrick Mezard <pmezard@gmail.com>
date Mon, 07 Mar 2011 23:02:04 +0100
parents 7509e36eed3b
children a2734c8322ac 391948925b67
files mercurial/subrepo.py tests/test-subrepo-svn.t
diffstat 2 files changed, 1 insertions(+), 59 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/subrepo.py	Mon Mar 07 15:46:28 2011 -0600
+++ b/mercurial/subrepo.py	Mon Mar 07 23:02:04 2011 +0100
@@ -625,8 +625,7 @@
     def get(self, state, overwrite=False):
         if overwrite:
             self._svncommand(['revert', '--recursive'])
-        status = self._svncommand(['checkout', '--force', state[0],
-                                   '--revision', state[1]])
+        status = self._svncommand(['checkout', state[0], '--revision', state[1]])
         if not re.search('Checked out revision [0-9]+.', status):
             raise util.Abort(status.splitlines()[-1])
         self._ui.status(status)
--- a/tests/test-subrepo-svn.t	Mon Mar 07 15:46:28 2011 -0600
+++ b/tests/test-subrepo-svn.t	Mon Mar 07 23:02:04 2011 +0100
@@ -438,60 +438,3 @@
   $ svnversion
   2
   $ cd ..
-
-Test case where subversion would fail to update the subrepo because there
-are unknown directories being replaced by tracked ones (happens with rebase).
-
-  $ cd $WCROOT/src
-  $ mkdir dir
-  $ echo epsilon.py > dir/epsilon.py
-  $ svn add dir
-  A         dir
-  A         dir/epsilon.py
-  $ svn ci -m 'Add dir/epsilon.py'
-  Adding         src/dir
-  Adding         src/dir/epsilon.py
-  Transmitting file data .
-  Committed revision 6.
-  $ cd ../..
-  $ hg init rebaserepo
-  $ cd rebaserepo
-  $ svn co -r5 --quiet "$SVNREPO"/src s
-  $ echo "s =        [svn]       $SVNREPO/src" >> .hgsub
-  $ hg add .hgsub
-  $ hg ci -m addsub
-  committing subrepository s
-  $ echo a > a
-  $ hg ci -Am adda
-  adding a
-  $ hg up 0
-  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
-  $ svn up -r6 s
-  A    s/dir
-  A    s/dir/epsilon.py
-  
-  Fetching external item into 's/externals'
-  Updated external to revision 1.
-  
-  Updated to revision 6.
-  $ hg ci -m updatesub
-  committing subrepository s
-  created new head
-  $ echo pyc > s/dir/epsilon.pyc
-  $ hg up 1
-  D    $TESTTMP/rebaserepo/s/dir
-  
-  Fetching external item into '$TESTTMP/rebaserepo/s/externals'
-  Checked out external at revision 1.
-  
-  Checked out revision 5.
-  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
-  $ hg up 2
-  E    $TESTTMP/rebaserepo/s/dir
-  A    $TESTTMP/rebaserepo/s/dir/epsilon.py
-  
-  Fetching external item into '$TESTTMP/rebaserepo/s/externals'
-  Checked out external at revision 1.
-  
-  Checked out revision 6.
-  1 files updated, 0 files merged, 1 files removed, 0 files unresolved