Glock 20 and S&W 629 are great trail guns.
During 45 years of hiking and backpacking in the SW and in the Rockies, I have carried the following for self defense while on the trail: S&W Model 19 .357 mag, S&W 629 .44 mag, Taurus Tracker (5 shot) .44 mag, a a Glock 20 in 10 mm, and bear repellant spray. All of the revolvers had 4" barrels. Except for the 629, each of the handguns weigh approximately 40 oz fully loaded. The 629 weighs a little over 47 oz loaded.
I consider a .44 mag revolver to be the minimum recommended caliber for defense against medium and large black bear, but lesser calibers have often been used (by others), sometimes with success. For the last 10 years, I have typically carried a can of bear spray as my primary and either my S&W 629 or Glock 20 as a backup. Often an unarmed companion is carrying bear spray as well.
Following are some of my observations about the trail guns I have carried.
Taurus Tracker SS 5 shot .44 mag., 4" ported barrel, weighs 34 oz empty, about 40 oz loaded. Good balance, slightly muzzle heavy. My Tracker has smooth single action and double action trigger pulls which rival that of my 629 Classic. It is as accurate as my 629 with 4" barrel, and even though it is 8 oz lighter than my 4" 629, the effective porting and the shock absorbing ribbed grip on the Tracker make the recoil and muzzle jump seem less than on the 4" 629.
The Tracker has several disadvantages due to its porting: * It has a louder muzzle blast (about equal to a .357 or .44 mag snub, IMO), especially for bystanders and other shooters standing next to you. *It is harder to clean around the porting, especially if you shoot more than a few lead bullet loads. I recommend jacketed bullets only. (Although the occasional use of hard cast has not caused problems.) *Speer advises that it is unsafe to use shot shell ammo in ported handguns.
The Tracker has a few other disadvantages as well: lack of aftermarket accessories; parts and service are typically not available from local gunsmiths; and limitations on the power, length and bullet weight of recommended ammo.
Taurus recommends that the power of ammo used should not exceed that of a 240 gr bullet at 1350 fps (which is about the level of many commercially available loads.) I consider 250 gr. to be the maximum bullet weight in this revolver. Loads using 270 or 300 gr jacketed or hard cast bullets are not an option with the Tracker.
Glock 20: 40 oz fully loaded. A decent compromise between power and portability. More reliable than my revolvers under conditions where a handgun can get wet and/or dirty. If I fall into a muddy creek, my Glock 20 can be ready to shoot in a few minutes; not so with my revolvers. Probably adequate in the hands of a skilled shooter for protection from small and medium size black bear; excellent for protection against anything smaller. It only weighs a few oz more than a G29, so go for the G20 unless you are placing a high priority on concealment. The grip may be too large for most shooters with small and medium sized hands to shoot well with a one handed grip.
S&W 629 with 4" barrel. 48 oz loaded. Good all around handgun. Drilled and tapped for mounting optical sights. Great trail gun for open carry if you feel you can handle the weight. Although some shooters fire maximum loads with 300 gr hard cast or jacketed bullets, most shooters find the recoil excessive and hard to handle with such loads. My favorite trail gun.
Bear spray. Weight = 1 lb. Until recently, the only protection a hiker was legally allowed to carry in a National Park. Major advantage: You can justifiably (and legally) spray any bear that gets within range (about 20 to 25 feet) regardless of whether it is attacking you. You can only shoot a bear legally in self defense if it is attacking you or another human. I have used it successfully twice on black bear with no problems. Easier to aim and hit with than a handgun.
If concealment is important, any of these handguns can be carried in a discrete Wilderness holster which can be worn on the chest or on the belt.
If you are serious about bear protection, I recommend that you get the most effective handgun you can handle, even if it weighs a few oz or a half pound more. I recommend that you do not consider .44 mag revolvers lighter than the SS Tracker at 34 oz or any .44 mag revolver with a barrel shorter than 4".