comparison tests/test-subrepo-svn.t @ 16529:3d5d204a08c7 stable

subrepo/svn: abort on commit with missing file (issue3029) Previous code was printing a traceback because it expected some error output from svn. But sometimes our definition of "changed" differs with the subversion one. For instance, subversion ignores missing files when committing. And when there are only missing files, svn commit will be a successful no-op with no output. Still, we should stick to our definition including missing files in changes as doing otherwise could cause surprising behaviour for the user.
author Patrick Mezard <patrick@mezard.eu>
date Thu, 26 Apr 2012 11:55:07 +0200
parents 17a1f7690b49
children e37199a1f9d4
comparison
equal deleted inserted replaced
16528:5d803620ca05 16529:3d5d204a08c7
118 revision 3 118 revision 3
119 path subdir/s 119 path subdir/s
120 source file://*/svn-repo/src (glob) 120 source file://*/svn-repo/src (glob)
121 revision 2 121 revision 2
122 122
123 missing svn file, commit should fail
124
125 $ rm s/alpha
126 $ hg commit --subrepos -m 'abort on missing file'
127 committing subrepository s
128 abort: failed to commit svn changes
129 [255]
130 $ svn revert s/alpha > /dev/null
131
123 add an unrelated revision in svn and update the subrepo to without 132 add an unrelated revision in svn and update the subrepo to without
124 bringing any changes. 133 bringing any changes.
125 134
126 $ svn mkdir "$SVNREPO/unrelated" -m 'create unrelated' 135 $ svn mkdir "$SVNREPO/unrelated" -m 'create unrelated'
127 136