Section 139 in Indian Penal Codes
Title: Persons subject to certain Acts
No person subject to 146 [the Army Act, 147 [the Army Act, 1950 (46 of 1950), or the Naval Discipline Act, 148 [ 149 [***] 150 [the Indian Navy (Discipline) Act, 1934 (34 of 1934)], 151 [the Air Force Act 152 [the Air Force Act, 1950 (45 of 1950)]]], is subject to punishment under this Code for any of the offences defined in this Chapter.
Title: Wearing garb or carrying token used by soldier sailor or airman
Whoever, not being a soldier, 153 [sailor or airman], in the Military, 154 [Naval or Air] service of the 155 [Government of India], wears any garb or carries any token resembling any garb or token used by such a soldier, 153 [sailor or airman] with the intention that it may be believed that he is such a soldier, 153 [sailor or airman], shall be punished with imprisonment of either description for a term which may extend to three months, or with fine which may extend to five hundred rupees, or with both
Title: Unlawful assembly
An assembly of five or more persons is designated an “unlawful assembly”, if the common object of the persons composing that assembly is—
(First) — To overawe by criminal force, or show of criminal force, 1[the Central or any State Government or Parliament or the Legislature of any State], or any public servant in the exercise of the lawful power of such public servant; or
(Second) — To resist the execution of any law, or of any legal process; or
(Third) — To commit any mischief or criminal trespass, or other offence; or
(Fourth) — By means of criminal force, or show of criminal force, to any person, to take or obtain possession of any property, or to deprive any person of the enjoyment of a right of way, or of the use of water or other incorporeal right of which he is in possession or enjoyment, or to enforce any right or supposed right; or
(Fifth) — By means of criminal force, or show of criminal force, to compel any person to do what he is not legally bound to do, or to omit to do what he is legally entitled to do. Explanation.—An assembly which was not unlawful when it assembled, may subsequently become an unlawful assembly.
Title: Being member of unlawful assembly
Whoever, being aware of facts which render any assembly an unlawful assembly, intentionally joins that assembly, or continues in it, is said to be a member of an unlawful assembly.
Whoever is a member of an unlawful assembly, shall be punished with imprisonment of either description for a term which may extend to six months, or with fine, or with both.