# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1377712358 14400
#      Wed Aug 28 13:52:38 2013 -0400
# Node ID bd5467169d3c6926f8c83d37c15a32f1fd8ea866
# Parent  6da65b5343701bfc6d30642ae0a3267d696d2e1f
test-subrepos: cope with unsorted output in .hgsub

diff --git a/tests/test-subrepos.t b/tests/test-subrepos.t
--- a/tests/test-subrepos.t
+++ b/tests/test-subrepos.t
@@ -38,9 +38,9 @@
   $ hg bookmarks -f -r default master
 1. Ensure gitlinks are transformed to .hgsubstate on hg <- git pull
 .hgsub shall list two [git] subrepos
-  $ cat .hgsub
+  $ cat .hgsub | sort
+  subrepo1 = [git]../gitsubrepo
   xyz/subrepo2 = [git]../gitsubrepo
-  subrepo1 = [git]../gitsubrepo
 .hgsubstate shall list two idenitcal revisions
   $ cat .hgsubstate
   56f0304c5250308f14cfbafdc27bd12d40154d17 subrepo1
@@ -108,10 +108,10 @@
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ cd ..
 pull shall bring .hgsub entry which was added to the git repo
-  $ cat hgrepo/.hgsub
+  $ cat hgrepo/.hgsub | sort
   hgsub = $TESTTMP/hgsub
+  subrepo1 = [git]../gitsubrepo
   xyz/subrepo2 = [git]../gitsubrepo
-  subrepo1 = [git]../gitsubrepo
 .hgsubstate shall list revision of the subrepo added through git repo
   $ cat hgrepo/.hgsubstate
   481ec30d580f333ae3a77f94c973ce37b69d5bda hgsub