Commits

Nathan Durnan committed 496a1c1

Create test script to create new repo and attempt a first commit.
The script will do a commit with no flags, and with the --debug flag.

  • Participants
  • Parent commits 1859bc0
  • Branches BBI#36 - Check Timestamp File Exists

Comments (0)

Files changed (2)

File .hgtimestamp

 ".hgignore": {"timestamp": 1336516662.38},
 ".hgtags": {"timestamp": 1327960909.75},
 "README.md": {"timestamp": 1341343670.83},
+"Tests/BBI36_Test.bat": {"timestamp": 1341533372.44},
 "Tests/TimestampMod_BBI37_Test.bat": {"timestamp": 1341343207.95},
 "TimeStampMod.png": {"timestamp": 1305052883.0},
 "TimestampMod.py": {"timestamp": 1341339063.7},

File Tests/BBI36_Test.bat

+::------------------------------------------------------------------------------
+:: Tests for BitBucket Issue #36 - Quiet Check for Existing Timestamp File.
+:: The message "*** Error accessing .hgtimestamp file! ***" is too strong.
+:: The file will be recreated if it is missing.  No message needed.
+::------------------------------------------------------------------------------
+:: This test-script creates a temporary test repository,
+:: creates and addes a single file, and commits the file.
+::------------------------------------------------------------------------------
+@echo off
+echo.
+echo ===========================================
+echo Test #1 - New Repository - Commit Normally.
+echo.
+echo ----------
+echo Initializing Test Repository...
+if exist testrepo rmdir /S /Q testrepo
+mkdir testrepo
+cd testrepo
+hg init
+echo Create file (abc.txt)
+echo "abc" > abc.txt
+hg add abc.txt
+echo hg commit -m "abc"
+hg commit -m "abc"
+echo --------------------------------------------
+echo CHECK: no error message should be displayed.
+echo ============================================
+pause
+echo.
+echo.
+echo =============================================
+echo Test #2 - New Repository - Commit w/ --debug.
+echo.
+echo ----------
+echo Initializing Test Repository...
+if exist testrepo rmdir /S /Q testrepo
+mkdir testrepo
+cd testrepo
+hg init
+echo Create file (abc.txt)
+echo "abc" > abc.txt
+hg add abc.txt
+echo hg commit -m "abc" --debug
+hg commit -m "abc" --debug
+echo --------------------------------------------
+echo CHECK: no error message should be displayed,
+echo        just a simple notification message.
+echo ============================================
+pause