Mercurial > public > mercurial-scm > hg
comparison hgext/graphlog.py @ 10379:a78bfaf988e1
add -b/--branch option to clone, bundle, incoming, outgoing, pull, push
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Sun, 07 Feb 2010 15:23:46 +0100 |
parents | d757bc0c7865 |
children | d1908cb95a82 |
comparison
equal
deleted
inserted
replaced
10377:04e1e6743809 | 10379:a78bfaf988e1 |
---|---|
275 directory. | 275 directory. |
276 """ | 276 """ |
277 | 277 |
278 check_unsupported_flags(opts) | 278 check_unsupported_flags(opts) |
279 dest = ui.expandpath(dest or 'default-push', dest or 'default') | 279 dest = ui.expandpath(dest or 'default-push', dest or 'default') |
280 dest, branches = hg.parseurl(dest) | 280 dest, branches = hg.parseurl(dest, opts.get('branch')) |
281 revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev')) | 281 revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev')) |
282 other = hg.repository(cmdutil.remoteui(ui, opts), dest) | 282 other = hg.repository(cmdutil.remoteui(ui, opts), dest) |
283 if revs: | 283 if revs: |
284 revs = [repo.lookup(rev) for rev in revs] | 284 revs = [repo.lookup(rev) for rev in revs] |
285 ui.status(_('comparing with %s\n') % url.hidepassword(dest)) | 285 ui.status(_('comparing with %s\n') % url.hidepassword(dest)) |
303 Nodes printed as an @ character are parents of the working | 303 Nodes printed as an @ character are parents of the working |
304 directory. | 304 directory. |
305 """ | 305 """ |
306 | 306 |
307 check_unsupported_flags(opts) | 307 check_unsupported_flags(opts) |
308 source, branches = hg.parseurl(ui.expandpath(source)) | 308 source, branches = hg.parseurl(ui.expandpath(source), opts.get('branch')) |
309 other = hg.repository(cmdutil.remoteui(repo, opts), source) | 309 other = hg.repository(cmdutil.remoteui(repo, opts), source) |
310 revs, checkout = hg.addbranchrevs(repo, other, branches, opts.get('rev')) | 310 revs, checkout = hg.addbranchrevs(repo, other, branches, opts.get('rev')) |
311 ui.status(_('comparing with %s\n') % url.hidepassword(source)) | 311 ui.status(_('comparing with %s\n') % url.hidepassword(source)) |
312 if revs: | 312 if revs: |
313 revs = [other.lookup(rev) for rev in revs] | 313 revs = [other.lookup(rev) for rev in revs] |