##// END OF EJS Templates
Re: [PATCH 2 of 3] remove walk warning about nonexistent files...
Re: [PATCH 2 of 3] remove walk warning about nonexistent files On 11/15/05, Robin Farine <robin.farine@terminus.org> wrote: > # HG changeset patch > # User Robin Farine <robin.farine@terminus.org> > # Node ID ce0a3cc309a8d1e81278ec01a3c61fbb99c691f4 > # Parent feb77e0951e74d75c213e8471f107fdcc124c876 > remove walk warning about nonexistent files > > diff -r feb77e0951e7 -r ce0a3cc309a8 mercurial/dirstate.py > --- a/mercurial/dirstate.py Tue Nov 15 08:42:45 2005 +0100 > +++ b/mercurial/dirstate.py Tue Nov 15 08:59:50 2005 +0100 > @@ -336,9 +336,6 @@ > try: > st = os.lstat(f) > except OSError, inst: > - if ff not in dc: self.ui.warn('%s: %s\n' % ( > - util.pathto(self.getcwd(), ff), > - inst.strerror)) > continue > if stat.S_ISDIR(st.st_mode): > cmp1 = (lambda x, y: cmp(x[1], y[1])) this break some tests, a better fix would be to check if ff can be a directory prefix from files in dc you can try the attached patch. Benoit

File last commit:

r925:5a034646 default
r1564:34579a67 default
Show More
test-tags
33 lines | 409 B | text/plain | TextLexer
Thomas Arendsen Hein
Remove bashisms and use /bin/sh instead of /bin/bash....
r544 #!/bin/sh
mpm@selenic.com
Add a tags/identify test group...
r345
mkdir t
cd t
hg init
hg id
echo a > a
hg add a
mpm@selenic.com
Update tests to use commit -m and default -u...
r749 hg commit -m "test" -d "0 0"
mpm@selenic.com
Add a tags/identify test group...
r345 hg co
hg identify
mpm@selenic.com
run-tests: remove '+ hg' trick...
r925 T=`hg tip -v | head -n 1 | cut -d : -f 3`
mpm@selenic.com
Add a tags/identify test group...
r345 echo "$T first" > .hgtags
cat .hgtags
hg add .hgtags
mpm@selenic.com
Update tests to use commit -m and default -u...
r749 hg commit -m "add tags" -d "0 0"
mpm@selenic.com
Add a tags/identify test group...
r345 hg tags
hg identify
echo bb > a
hg status
hg identify
hg co first
hg id
hg -v id
hg status
echo 1 > b
hg add b
mpm@selenic.com
Update tests to use commit -m and default -u...
r749 hg commit -m "branch" -d "0 0"
mpm@selenic.com
Add a tags/identify test group...
r345 hg id
hg co -m 1
hg id
hg status