From c0afd4033781a6e4256fa35d03feb7beceb220ff Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 6 May 2014 07:25:00 -0700 Subject: [PATCH] update test section to work again --- xwords4/android/scripts/mk_for_download.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/xwords4/android/scripts/mk_for_download.py b/xwords4/android/scripts/mk_for_download.py index 0ead28369..5271199af 100755 --- a/xwords4/android/scripts/mk_for_download.py +++ b/xwords4/android/scripts/mk_for_download.py @@ -95,15 +95,18 @@ def getXlationFor( repo, rDotJava, locale, firstHash ): def main(): repo = mygit.GitRepo( xwconfig.k_REPOPATH ) + head = repo.getHeadRev() # testing with the most recent (as of now) R.java change - hash = '33a83b0e2fcf062f4f640ccab0785b2d2b439542' + hash = repo.getRevsBetween( head, '33a83b0e2fcf062f4f640ccab0785b2d2b439542', \ + 'R.java' )[0] + print 'using hash:', hash rDotJava = repo.cat( 'R.java', hash ) - data, newHash = getXlationFor( repo, rDotJava, 'ca_PS', hash ) - print 'data for:', newHash, ':' , data - data, newHash = getXlationFor( repo, rDotJava, 'ba_CK', hash ) - print 'data for:', newHash, ':' , data + data = getXlationFor( repo, rDotJava, 'ca_PS', hash ) + print 'data :' , data + data = getXlationFor( repo, rDotJava, 'ba_CK', hash ) + print 'data :' , data ############################################################################## if __name__ == '__main__':