[PATCH] [TEST] Update revision and changeset info

From: "Eduardo Lima (Etrunko)" <eblima@br.ibm.com> We are now using git (yay!!). Port the commands from mercurial to the git equivalents. Signed-off-by: Eduardo Lima (Etrunko) <eblima@br.ibm.com> --- suites/libvirt-cim/lib/XenKvmLib/reporting.py | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/suites/libvirt-cim/lib/XenKvmLib/reporting.py b/suites/libvirt-cim/lib/XenKvmLib/reporting.py index b6df36e..67ec974 100644 --- a/suites/libvirt-cim/lib/XenKvmLib/reporting.py +++ b/suites/libvirt-cim/lib/XenKvmLib/reporting.py @@ -33,10 +33,8 @@ def get_cmd_val(cmd, ip): return out def get_cimtest_version(): - revision = commands.getoutput("hg parents --template \ - \"{rev}\" 2>/dev/null") - changeset = commands.getoutput("hg parents --template \ - \"{node|short}\" 2>/dev/null") + revision = commands.getoutput("git rev-list --count HEAD 2>/dev/null") + changeset = commands.getoutput("git rev-parse --short HEAD 2> /dev/null") return revision, changeset def get_libvirt_ver(ip): -- 1.7.7.5

+1 & pushed. On 01/17/2012 12:01 PM, Eduardo Lima (Etrunko) wrote:
From: "Eduardo Lima (Etrunko)"<eblima@br.ibm.com>
We are now using git (yay!!). Port the commands from mercurial to the git equivalents.
Signed-off-by: Eduardo Lima (Etrunko)<eblima@br.ibm.com> --- suites/libvirt-cim/lib/XenKvmLib/reporting.py | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/suites/libvirt-cim/lib/XenKvmLib/reporting.py b/suites/libvirt-cim/lib/XenKvmLib/reporting.py index b6df36e..67ec974 100644 --- a/suites/libvirt-cim/lib/XenKvmLib/reporting.py +++ b/suites/libvirt-cim/lib/XenKvmLib/reporting.py @@ -33,10 +33,8 @@ def get_cmd_val(cmd, ip): return out
def get_cimtest_version(): - revision = commands.getoutput("hg parents --template \ - \"{rev}\" 2>/dev/null") - changeset = commands.getoutput("hg parents --template \ - \"{node|short}\" 2>/dev/null") + revision = commands.getoutput("git rev-list --count HEAD 2>/dev/null") + changeset = commands.getoutput("git rev-parse --short HEAD 2> /dev/null") return revision, changeset
def get_libvirt_ver(ip):
-- Chip Vincent Open Virtualization IBM Linux Technology Center cvincent@linux.vnet.ibm.com
participants (2)
-
Chip Vincent
-
Eduardo Lima (Etrunko)