##// END OF EJS Templates
commands: use rev from remote repo when updating as part of a pull
timeless@mozdev.org -
r9645:02f40b2e default
parent child Browse files
Show More
@@ -2308,6 +2308,8 b' def pull(ui, repo, source="default", **o'
2308 raise util.Abort(err)
2308 raise util.Abort(err)
2309
2309
2310 modheads = repo.pull(other, heads=revs, force=opts.get('force'))
2310 modheads = repo.pull(other, heads=revs, force=opts.get('force'))
2311 if checkout:
2312 checkout = str(repo.changelog.rev(other.lookup(checkout)))
2311 return postincoming(ui, repo, modheads, opts.get('update'), checkout)
2313 return postincoming(ui, repo, modheads, opts.get('update'), checkout)
2312
2314
2313 def push(ui, repo, dest=None, **opts):
2315 def push(ui, repo, dest=None, **opts):
General Comments 0
You need to be logged in to leave comments. Login now