Skip to content

Revision numbers/raw_id/id #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lukaszb opened this issue Jan 23, 2011 · 0 comments
Open

Revision numbers/raw_id/id #25

lukaszb opened this issue Jan 23, 2011 · 0 comments

Comments

@lukaszb
Copy link
Member

lukaszb commented Jan 23, 2011

We need to clean up changeset id representation. All backends should support integers as revision numbers.

As docstrings state, revision should always be integers. On the other hand, "raw_id" should be just full hash (or simply integer for subversion, for instance). This would probably need some code refactor (but "grin raw_id" doesn't output much...).

This would allow one to easily get numbers for git commits, just like calling:
{{{
git log --pretty=oneline | awk '{ print NR-1 ":" $1 }' | sort -rn | awk -F":" '{ print NR-1 ":" $2 }' | sort -rn
}}}
in any git repo.


Reference: https://bitbucket.org/marcinkuzminski/vcs/issues/25/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant