##// END OF EJS Templates
localrepo: introduce method for explicit branch cache update...
localrepo: introduce method for explicit branch cache update Currently, localrepo.branchtags() is called in two locations to update the _branchcache dict, however branchtags() itself does not update anything, it calls branchmap() to do so. This change introduces a new updatebranchcache() method that is used by both branchmap() and the calls to update the cache.

File last commit:

r8167:6c82beaa default
r12066:d01e2865 default
Show More
test-diff-binary-file
25 lines | 415 B | text/plain | TextLexer
/ tests / test-diff-binary-file
Alexis S. L. Carvalho
add test for diffing identical binary files
r4104 #!/bin/sh
hg init a
cd a
cp $TESTDIR/binfile.bin .
hg add binfile.bin
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg ci -m 'add binfile.bin'
Alexis S. L. Carvalho
add test for diffing identical binary files
r4104
echo >> binfile.bin
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg ci -m 'change binfile.bin'
Alexis S. L. Carvalho
add test for diffing identical binary files
r4104
hg revert -r 0 binfile.bin
Martin Geisler
tests: removed redundant "-d '0 0'" from test scripts...
r8167 hg ci -m 'revert binfile.bin'
Alexis S. L. Carvalho
add test for diffing identical binary files
r4104
echo % diff -r 0 -r 1
hg diff --nodates -r 0 -r 1
echo % diff -r 0 -r 2
hg diff --nodates -r 0 -r 2
echo % diff --git -r 0 -r 1
hg diff --git -r 0 -r 1
echo % diff --git -r 0 -r 2
hg diff --git -r 0 -r 2