fetch: use cmdutil.bailifchanged()

Use the existing method cmdutil.bailifchanged() instead of
implementing it again in fetch.py. An effect of this is that the error
messages in case of uncommited changes will be different.

--HG--
extra : amend_source : f5e073d2260822bb1447a76f7b30ea9ea0c944d2
summary: remove unused code for listing ignored files

The call to repo.status() does not request ignored files to be listed,
so remove the code for printing them.

--HG--
extra : rebase_source : 129a70f420186209e89ae88922542e29b99047b5
tag: properly abort if an unknown or ignored .hgtags is present

This was a regression introduced by 4faaa0535ea7 in 2008.

--HG--
extra : rebase_source : e65cfb7b8103b3ab7d446825b7cc819f3975dcfd
tag: only check the status of .hgtags

--HG--
extra : rebase_source : 9c06710031b32df484c43bdfab57a02c536f2ac7
tag: use an abort hint

--HG--
extra : rebase_source : ab4d7adc5200c085352ca0b4b64c0c54ec75e55f
gpg: drop unnecessary slicing of status array

The call to repo.status() does not request status for clean files, so
there is no reason to slice it out from the result. Leaving the tuple
untouched will simplify a future change.

--HG--
extra : rebase_source : c93ce00716c4b21d706a77b7c79831f4eda4e9db
gpg: move test of force before status call

--HG--
extra : rebase_source : 195b20af3f93057bdf420c864c19fff87edb337d
gpg: use an abort hint and don't mention --force

--HG--
extra : rebase_source : 4ba3d0d3b192bb598e1d0da1ebfa02b483c24c03
shelve: remove unused status variables

--HG--
extra : rebase_source : 38ddab99122846dfc65fa5e1401a88c23cd08885