PageRenderTime 81ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/test-error-reporting.t

https://bitbucket.org/douardda/guestrepo-color
Unknown | 153 lines | 123 code | 30 blank | 0 comment | 0 complexity | 10067ea9336acebfec0fe8d4bc550ee9 MD5 | raw file
Possible License(s): GPL-2.0
  1. # Guestrepo: A Mercurial Extension for the managing of components
  2. # Copyright (C) 2012 Schweitzer Engineering Laboratories, Inc.
  3. # This program is free software; you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation; either version 2 of the License, or
  6. # (at your option) any later version.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. # GNU General Public License for more details.
  11. # You should have received a copy of the GNU General Public License along
  12. # with this program; if not, write to the Free Software Foundation, Inc.,
  13. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  14. # Contact information:
  15. # opensource@selinc.com
  16. # Schweitzer Engineering Laboratories, Inc.
  17. # 2350 NE Hopkins Court
  18. # Pullman, WA 99163 - USA
  19. Make four repos
  20. $ for reponame in host one two three; do
  21. $ mkdir $reponame
  22. $ cd $reponame
  23. $ hg init
  24. $ echo c > f
  25. $ hg add f
  26. $ hg commit -m 0
  27. $ cd ..; done
  28. Make add guest repos
  29. $ cd host
  30. $ echo mygr1 = mygr1-name default >> .hgguestrepo
  31. $ echo mygr2 = mygr2-name default >> .hgguestrepo
  32. $ echo mygr3 = mygr3-name default >> .hgguestrepo
  33. $ echo mygr1-name = `readlink -f -n ../one` >> .hggrmapping
  34. $ echo mygr2-name = `readlink -f -n ../two` >> .hggrmapping
  35. $ echo mygr3-name = `readlink -f -n ../three` >> .hggrmapping
  36. $ hg add .hggrmapping .hgguestrepo
  37. $ hg commit -m 1
  38. Try to clone missing repos:
  39. $ mv ../one ../one-moved
  40. $ mv ../two ../two-moved
  41. $ hg grpull
  42. cloning mygr1
  43. repository /tmp/*/test-error-reporting.t/one not found (glob)
  44. cloning mygr2
  45. repository /tmp/*/test-error-reporting.t/two not found (glob)
  46. cloning mygr3
  47. updating to branch default
  48. 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
  49. finished with errors
  50. mygr1: repository /tmp/*/test-error-reporting.t/one not found (glob)
  51. verifying mygr1
  52. repository /tmp/*/test-error-reporting.t/host/mygr1 not found (glob)
  53. mygr2: repository /tmp/*/test-error-reporting.t/two not found (glob)
  54. verifying mygr2
  55. repository /tmp/*/test-error-reporting.t/host/mygr2 not found (glob)
  56. [1]
  57. Successfuly clone all three repos
  58. $ mv ../one-moved ../one
  59. $ mv ../two-moved ../two
  60. $ hg grpull
  61. cloning mygr1
  62. updating to branch default
  63. 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
  64. cloning mygr2
  65. updating to branch default
  66. 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
  67. pulling mygr3
  68. pulling from /tmp/*/test-error-reporting.t/three (glob)
  69. searching for changes
  70. no changes found
  71. Try to push to missing repos
  72. $ mv ../one ../one-moved
  73. $ mv ../two ../two-moved
  74. $ hg grpush
  75. pushing to /tmp/*/test-error-reporting.t/one (glob)
  76. repository /tmp/*/test-error-reporting.t/one not found (glob)
  77. pushing to /tmp/*/test-error-reporting.t/two (glob)
  78. repository /tmp/*/test-error-reporting.t/two not found (glob)
  79. pushing to /tmp/*/test-error-reporting.t/three (glob)
  80. searching for changes
  81. no changes found
  82. finished with errors
  83. mygr1: repository /tmp/*/test-error-reporting.t/one not found (glob)
  84. verifying mygr1
  85. checking changesets
  86. checking manifests
  87. crosschecking files in changesets and manifests
  88. checking files
  89. 1 files, 1 changesets, 1 total revisions
  90. mygr2: repository /tmp/*/test-error-reporting.t/two not found (glob)
  91. verifying mygr2
  92. checking changesets
  93. checking manifests
  94. crosschecking files in changesets and manifests
  95. checking files
  96. 1 files, 1 changesets, 1 total revisions
  97. [1]
  98. Try to pull from missing repos
  99. $ hg grpull
  100. pulling mygr1
  101. repository /tmp/*/test-error-reporting.t/one not found (glob)
  102. pulling mygr2
  103. repository /tmp/*/test-error-reporting.t/two not found (glob)
  104. pulling mygr3
  105. pulling from /tmp/*/test-error-reporting.t/three (glob)
  106. searching for changes
  107. no changes found
  108. finished with errors
  109. mygr1: repository /tmp/*/test-error-reporting.t/one not found (glob)
  110. verifying mygr1
  111. checking changesets
  112. checking manifests
  113. crosschecking files in changesets and manifests
  114. checking files
  115. 1 files, 1 changesets, 1 total revisions
  116. mygr2: repository /tmp/*/test-error-reporting.t/two not found (glob)
  117. verifying mygr2
  118. checking changesets
  119. checking manifests
  120. crosschecking files in changesets and manifests
  121. checking files
  122. 1 files, 1 changesets, 1 total revisions
  123. [1]