mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
update test section to work again
This commit is contained in:
parent
806851057c
commit
c0afd40337
1 changed files with 8 additions and 5 deletions
|
@ -95,15 +95,18 @@ def getXlationFor( repo, rDotJava, locale, firstHash ):
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
repo = mygit.GitRepo( xwconfig.k_REPOPATH )
|
repo = mygit.GitRepo( xwconfig.k_REPOPATH )
|
||||||
|
head = repo.getHeadRev()
|
||||||
|
|
||||||
# testing with the most recent (as of now) R.java change
|
# 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 )
|
rDotJava = repo.cat( 'R.java', hash )
|
||||||
data, newHash = getXlationFor( repo, rDotJava, 'ca_PS', hash )
|
data = getXlationFor( repo, rDotJava, 'ca_PS', hash )
|
||||||
print 'data for:', newHash, ':' , data
|
print 'data :' , data
|
||||||
data, newHash = getXlationFor( repo, rDotJava, 'ba_CK', hash )
|
data = getXlationFor( repo, rDotJava, 'ba_CK', hash )
|
||||||
print 'data for:', newHash, ':' , data
|
print 'data :' , data
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue