has the hump

Apparently, in British slang, to "have the hump" is to be "annoyed or upset with someone," according to The Free Dictionary. I wonder if the phrase derives ultimately from Kipling.

Encountered the phrase in late December in a transcript of a Veronica Mars episode, in which the (British) transcriber wrote: "The manager has the hump."

Oddly, as of late December, Urban Dictionary didn't mention this meaning of the word "hump." I suppose I could add it, but the general quality of the defs in Urban Dictionary doesn't really make me want to contribute to it.