Skip to content

Commit

Permalink
move to log from reflog for versions
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthIsUp committed Feb 10, 2012
1 parent 6a98cd4 commit f8d79c6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions messages.json
@@ -1,5 +1,6 @@
{
"latest" : "added a messages.json file",
"14": "added a messages.json file",
"22": "Block selection is working with alt+s",
"27": "updating description",
"22": "Block selection is working with alt+s"
}
"latest": "Some sort of awesome change!"
}
4 changes: 2 additions & 2 deletions package-metadata.json
@@ -1,5 +1,5 @@
{
"description": "Block selection toggle and other tools that I missed from other editors",
"url": "https://github.com/NorthIsUp/Sublimation",
"version": "27"
}
"version": "14"
}
6 changes: 3 additions & 3 deletions support/pavement.py
Expand Up @@ -43,7 +43,7 @@ def html():
@task
def bump_rev():
"""Bump the revision as a part of distribution"""
version = sh("git reflog --all | wc -l", capture=True,).strip()
version = sh("git log --oneline --all | wc -l", capture=True,).strip()

metadata_file = path(sublimation_dir + "/package-metadata.json")
messages_file = path(sublimation_dir + "/messages.json")
Expand All @@ -58,11 +58,11 @@ def bump_rev():
metadata_file.write_text(json.dumps(metadata, indent=4, sort_keys=True))
messages_file.write_text(json.dumps(messages, indent=4, sort_keys=True))

_git_amend() # save the new version number

messages['latest'] = "Some sort of awesome change!"
messages_file.write_text(json.dumps(messages, indent=4, sort_keys=True))

_git_amend() # save the new version number

sh("git tag %s" % metadata['version'])


Expand Down

0 comments on commit f8d79c6

Please sign in to comment.