mercurial/commands.py
changeset 1238 6a4f181497c9
parent 1233 5381b0d88e9e
child 1241 3b4f05ff3130
--- a/mercurial/commands.py	Tue Sep 13 19:32:43 2005 -0500
+++ b/mercurial/commands.py	Tue Sep 13 19:32:53 2005 -0500
@@ -1161,7 +1161,10 @@
             du = dui(ui)
         elif st == 'add':
             du.bump(rev)
-            show_changeset(du, repo, rev)
+            br = None
+            if opts['branch']:
+                br = repo.branchlookup([repo.changelog.node(rev)])
+            show_changeset(du, repo, rev, brinfo=br)
             if opts['patch']:
                 changenode = repo.changelog.node(rev)
                 prev, other = repo.changelog.parents(changenode)
@@ -1743,6 +1746,7 @@
         (log,
          [('I', 'include', [], 'include path in search'),
           ('X', 'exclude', [], 'exclude path from search'),
+          ('b', 'branch', None, 'show branches'),
           ('r', 'rev', [], 'revision'),
           ('p', 'patch', None, 'show patch')],
          'hg log [-I] [-X] [-r REV]... [-p] [FILE]'),