/tests/test-error-reporting.t
Unknown | 153 lines | 123 code | 30 blank | 0 comment | 0 complexity | 10067ea9336acebfec0fe8d4bc550ee9 MD5 | raw file
Possible License(s): GPL-2.0
- # Guestrepo: A Mercurial Extension for the managing of components
- # Copyright (C) 2012 Schweitzer Engineering Laboratories, Inc.
- # This program is free software; you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation; either version 2 of the License, or
- # (at your option) any later version.
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- # You should have received a copy of the GNU General Public License along
- # with this program; if not, write to the Free Software Foundation, Inc.,
- # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- # Contact information:
- # opensource@selinc.com
- # Schweitzer Engineering Laboratories, Inc.
- # 2350 NE Hopkins Court
- # Pullman, WA 99163 - USA
- Make four repos
- $ for reponame in host one two three; do
- $ mkdir $reponame
- $ cd $reponame
- $ hg init
- $ echo c > f
- $ hg add f
- $ hg commit -m 0
- $ cd ..; done
- Make add guest repos
- $ cd host
- $ echo mygr1 = mygr1-name default >> .hgguestrepo
- $ echo mygr2 = mygr2-name default >> .hgguestrepo
- $ echo mygr3 = mygr3-name default >> .hgguestrepo
- $ echo mygr1-name = `readlink -f -n ../one` >> .hggrmapping
- $ echo mygr2-name = `readlink -f -n ../two` >> .hggrmapping
- $ echo mygr3-name = `readlink -f -n ../three` >> .hggrmapping
- $ hg add .hggrmapping .hgguestrepo
- $ hg commit -m 1
- Try to clone missing repos:
- $ mv ../one ../one-moved
- $ mv ../two ../two-moved
- $ hg grpull
- cloning mygr1
- repository /tmp/*/test-error-reporting.t/one not found (glob)
- cloning mygr2
- repository /tmp/*/test-error-reporting.t/two not found (glob)
- cloning mygr3
- updating to branch default
- 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
-
- finished with errors
-
- mygr1: repository /tmp/*/test-error-reporting.t/one not found (glob)
- verifying mygr1
- repository /tmp/*/test-error-reporting.t/host/mygr1 not found (glob)
-
- mygr2: repository /tmp/*/test-error-reporting.t/two not found (glob)
- verifying mygr2
- repository /tmp/*/test-error-reporting.t/host/mygr2 not found (glob)
- [1]
- Successfuly clone all three repos
- $ mv ../one-moved ../one
- $ mv ../two-moved ../two
- $ hg grpull
- cloning mygr1
- updating to branch default
- 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
- cloning mygr2
- updating to branch default
- 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
- pulling mygr3
- pulling from /tmp/*/test-error-reporting.t/three (glob)
- searching for changes
- no changes found
- Try to push to missing repos
- $ mv ../one ../one-moved
- $ mv ../two ../two-moved
- $ hg grpush
- pushing to /tmp/*/test-error-reporting.t/one (glob)
- repository /tmp/*/test-error-reporting.t/one not found (glob)
- pushing to /tmp/*/test-error-reporting.t/two (glob)
- repository /tmp/*/test-error-reporting.t/two not found (glob)
- pushing to /tmp/*/test-error-reporting.t/three (glob)
- searching for changes
- no changes found
-
- finished with errors
-
- mygr1: repository /tmp/*/test-error-reporting.t/one not found (glob)
- verifying mygr1
- checking changesets
- checking manifests
- crosschecking files in changesets and manifests
- checking files
- 1 files, 1 changesets, 1 total revisions
-
- mygr2: repository /tmp/*/test-error-reporting.t/two not found (glob)
- verifying mygr2
- checking changesets
- checking manifests
- crosschecking files in changesets and manifests
- checking files
- 1 files, 1 changesets, 1 total revisions
- [1]
- Try to pull from missing repos
- $ hg grpull
- pulling mygr1
- repository /tmp/*/test-error-reporting.t/one not found (glob)
- pulling mygr2
- repository /tmp/*/test-error-reporting.t/two not found (glob)
- pulling mygr3
- pulling from /tmp/*/test-error-reporting.t/three (glob)
- searching for changes
- no changes found
-
- finished with errors
-
- mygr1: repository /tmp/*/test-error-reporting.t/one not found (glob)
- verifying mygr1
- checking changesets
- checking manifests
- crosschecking files in changesets and manifests
- checking files
- 1 files, 1 changesets, 1 total revisions
-
- mygr2: repository /tmp/*/test-error-reporting.t/two not found (glob)
- verifying mygr2
- checking changesets
- checking manifests
- crosschecking files in changesets and manifests
- checking files
- 1 files, 1 changesets, 1 total revisions
- [1]