Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 3518:467d923e4e3d
Fix excessive complaining from hg log -b
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 25 Oct 2006 17:45:35 -0500 |
parents | b0dc459cd06c |
children | fb031f47890f |
comparison
equal
deleted
inserted
replaced
3517:b0dc459cd06c | 3518:467d923e4e3d |
---|---|
1855 def __getattr__(self, key): | 1855 def __getattr__(self, key): |
1856 return getattr(self.ui, key) | 1856 return getattr(self.ui, key) |
1857 | 1857 |
1858 changeiter, getchange, matchfn = walkchangerevs(ui, repo, pats, opts) | 1858 changeiter, getchange, matchfn = walkchangerevs(ui, repo, pats, opts) |
1859 | 1859 |
1860 if opts['branches']: | |
1861 ui.warn(_("the --branches option is deprecated, " | |
1862 "please use 'hg branches' instead\n")) | |
1863 | |
1860 if opts['limit']: | 1864 if opts['limit']: |
1861 try: | 1865 try: |
1862 limit = int(opts['limit']) | 1866 limit = int(opts['limit']) |
1863 except ValueError: | 1867 except ValueError: |
1864 raise util.Abort(_('limit must be a positive integer')) | 1868 raise util.Abort(_('limit must be a positive integer')) |
1931 if miss: | 1935 if miss: |
1932 continue | 1936 continue |
1933 | 1937 |
1934 br = None | 1938 br = None |
1935 if opts['branches']: | 1939 if opts['branches']: |
1936 ui.warn(_("the --branches option is deprecated, " | |
1937 "please use 'hg branches' instead\n")) | |
1938 br = repo.branchlookup([repo.changelog.node(rev)]) | 1940 br = repo.branchlookup([repo.changelog.node(rev)]) |
1939 | 1941 |
1940 copies = [] | 1942 copies = [] |
1941 if opts.get('copies') and rev: | 1943 if opts.get('copies') and rev: |
1942 mf = getchange(rev)[0] | 1944 mf = getchange(rev)[0] |