comparison mercurial/localrepo.py @ 12847:b00eda50ad2b stable

pull: silence spurious 'requesting all changes' message When issuing `hg pull -r REV` in a repo with no common ancestor with the remote repo, the message 'requesting all changes' is printed, even though only the changese that are ancestors of REV are actually requested. This can be confusing for users (see http://www.selenic.com/pipermail/mercurial/2010-October/035508.html). This silences the message if (and only if) the '-r' option was passed.
author Kevin Bullock <kbullock@ringworld.org>
date Wed, 20 Oct 2010 17:38:21 -0500
parents 18b5b6392fcf
children fabe61418a53
comparison
equal deleted inserted replaced
12846:4b334f8c941b 12847:b00eda50ad2b
1270 common, fetch, rheads = tmp 1270 common, fetch, rheads = tmp
1271 if not fetch: 1271 if not fetch:
1272 self.ui.status(_("no changes found\n")) 1272 self.ui.status(_("no changes found\n"))
1273 return 0 1273 return 0
1274 1274
1275 if fetch == [nullid]: 1275 if heads is None and fetch == [nullid]:
1276 self.ui.status(_("requesting all changes\n")) 1276 self.ui.status(_("requesting all changes\n"))
1277 elif heads is None and remote.capable('changegroupsubset'): 1277 elif heads is None and remote.capable('changegroupsubset'):
1278 # issue1320, avoid a race if remote changed after discovery 1278 # issue1320, avoid a race if remote changed after discovery
1279 heads = rheads 1279 heads = rheads
1280 1280