Oh, actually, I suppose to be less than completely hostile. . . so, if I had to write a Hulk vs Wolverine scene for a movie/show?
First, the setup would be "Hulk is driven into a berserk state and is rampaging". Mind control, brainwashing, some kind of weird gamma weapon, whatever, the point is that this is a Hulk that is not in control of his full faculties, which is why Wolverine has to fight him in the first place.
Second, Wolverine is 100% incapable of actually hurting the Hulk via his own abilities. This would be strongly suggested before the fight happens ( via something like his claws bouncing off Colossus during Danger Room training ), and then confirmed early in the fight when Logan gets a hit on Hulk that does absolutely nothing. This is not a fight between equals, and it wouldn't pretend to be.
So what is the point? The point is that Wolverine is doing what he does best, and what he does best is "Take the tough jobs in place of other X-Men, and survive". He's not fighting the Hulk to beat the Hulk, he's fighting the Hulk, to keep the Hulk fighting *him*. The other X-Men are doing something, like evacuating bystanders or preparing some plan to restore control to Banner, and Wolverine is buying them time. He can't hurt the Hulk, but he can annoy and harass the Hulk and keep him focused on "fighting and smashing Wolverine", and every second he does that is a victory. Plus, between his skeleton, his healing factor, and his skills, he might just be able to survive doing this. . . though it will probably hurt. A lot.
( Actually, I would probably make a point that this isn't the *only* option the X-Men have. Colossus could probably do a similar job of "Keep the Hulk occupied". The difference is that everyone else who might be able to keep the Hulk occupied stand a *much* higher chance of dying in the process. )