-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"guilt graph" no longer loops when no patches are applied.
Give an error message if no patches are applied. Added a test case that never terminates unless this fix is applied. Signed-off-by: Per Cederqvist <[email protected]> Signed-off-by: Josef 'Jeff' Sipek <[email protected]>
- Loading branch information
Per Cederqvist
committed
Jan 22, 2015
1 parent
de8c0d6
commit ed9ac9d
Showing
3 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
% setup_repo | ||
% guilt graph | ||
No patch applied. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# | ||
# Test the graph code | ||
# | ||
|
||
source "$REG_DIR/scaffold" | ||
|
||
cmd setup_repo | ||
|
||
# Check that "guilt graph" gives a proper "No patch applied" error | ||
# message when no patches are applied. (An older version of guilt | ||
# used to enter an endless loop in this situation.) | ||
shouldfail guilt graph |