forked from cisco/ChezScheme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
install a file containing revision control information alongside boot…
… files
- Loading branch information
1 parent
b597e16
commit ed4ca61
Showing
10 changed files
with
54 additions
and
4 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
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 @@ | ||
update-revision export-subst |
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,22 @@ | ||
#!/bin/bash | ||
if [ -d ../../.git ]; then | ||
git describe --always --exclude='*' --abbrev=40 --dirty | ||
echo 'git' | ||
elif [ -d ../../.hg ]; then | ||
DIRTY="$(hg status -n --color never --pager never | head -1)" | ||
hg log --limit 1 --template '{node}' --pager never | ||
if [ -n "${DIRTY}" ]; then | ||
echo '-dirty' | ||
else | ||
echo '' | ||
fi | ||
echo 'hg' | ||
elif [ -f ../../.hg_archival.txt ]; then | ||
# hg archive and hgweb embed this file by default (see .hgrc archivemeta) | ||
sed -n 's/^node: \(.*\)/\1/p' < ../../.hg_archival.txt | ||
echo 'hg' | ||
else | ||
# use export-subst git attribute to populate revision for git archive | ||
echo '$Format:%H$' | ||
echo 'git' | ||
fi |
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
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