[PATCH 5/5] hg-to-git: use git rev-parse instead of git show | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
'show' is a high-level command, scripts are better if they use
'rev-parse'.
Signed-off-by: Miklos Vajna <vmiklos@xxxxxxxxxxxxxx>
---
contrib/hg-to-git/hg-to-git.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/contrib/hg-to-git/hg-to-git.py b/contrib/hg-to-git/hg-to-git.py
index 7b03204..0ecb38b 100755
--- a/contrib/hg-to-git/hg-to-git.py
+++ b/contrib/hg-to-git/hg-to-git.py
@@ -233,7 +233,7 @@ for cset in range(int(tip) + 1):
os.system('git branch -d %s' % otherbranch)
# retrieve and record the version
- vvv = os.popen('git show --quiet --pretty=format:%H').read()
+ vvv = os.popen('git rev-parse HEAD').read()
print 'record', cset, '->', vvv
hgvers[str(cset)] = vvv
--
1.5.6.1.322.ge904b.dirty
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Newbies FAQ] [Kernel List] [Site Home] [Free Online Dating] [Gcc Help] [IETF Annouce] [DCCP] [Netdev] [Networking] [Security] [V4L] [Bugtraq] [Free Online Dating] [Rubini] [Photo] [Yosemite] [MIPS Linux] [ARM Linux] [Linux Security] [Linux RAID] [Linux SCSI] [DDR & Rambus] [Linux Resources]