changeset 2480:2ddbdc1bab13 stable

test: update test-obsolete.t to use common.sh The definition of getid() in the test file was wrong, use the one from common.sh instead
author Boris Feld <boris.feld@octobus.net>
date Wed, 17 May 2017 11:47:14 +0200
parents 3be45918c7b5
children 5774c27ce927 08f487d1e032
files tests/test-obsolete.t
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-obsolete.t
+++ b/tests/test-obsolete.t
@@ -1,3 +1,5 @@
+
+  $ . $TESTDIR/testlib/common.sh
   $ cat >> $HGRCPATH <<EOF
   > [web]
   > push_ssl = false
@@ -15,10 +17,6 @@
   >    hg add "$1"
   >    hg ci -m "add $1"
   > }
-  $ getid() {
-  >    hg id --hidden --debug -ir "$1"
-  > }
-
   $ alias qlog="hg log --template='{rev}\n- {node|short}\n'"
   $ hg init local
   $ cd local