What does ‘mug (up)’ mean?

( v ) To study hard. Did you mug up on your physics over the weekend?