Mercurial > hg
comparison hgext/patchbomb.py @ 10365:d757bc0c7865
interpret repo#name url syntax as branch instead of revision
Previously, the name part of an repo#name url was interpreted as a
revision, similar to using the --rev option. Now it is instead looked
up as a branch first, and if that succeeds all the heads of the branch
will be processed instead of just its tip-most head. If the branch
lookup fails, it will be assumed to be an revision as before (e.g. for
tags).
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Sun, 07 Feb 2010 14:29:07 +0100 |
parents | 61f4ea277f23 |
children | e764f24a45ee |
comparison
equal
deleted
inserted
replaced
10364:de1e7099d100 | 10365:d757bc0c7865 |
---|---|
231 _charsets = mail._charsets(ui) | 231 _charsets = mail._charsets(ui) |
232 | 232 |
233 def outgoing(dest, revs): | 233 def outgoing(dest, revs): |
234 '''Return the revisions present locally but not in dest''' | 234 '''Return the revisions present locally but not in dest''' |
235 dest = ui.expandpath(dest or 'default-push', dest or 'default') | 235 dest = ui.expandpath(dest or 'default-push', dest or 'default') |
236 dest, revs, checkout = hg.parseurl(dest, revs) | 236 dest, branches = hg.parseurl(dest) |
237 revs, checkout = hg.addbranchrevs(repo, repo, branches, revs) | |
237 if revs: | 238 if revs: |
238 revs = [repo.lookup(rev) for rev in revs] | 239 revs = [repo.lookup(rev) for rev in revs] |
239 other = hg.repository(cmdutil.remoteui(repo, opts), dest) | 240 other = hg.repository(cmdutil.remoteui(repo, opts), dest) |
240 ui.status(_('comparing with %s\n') % dest) | 241 ui.status(_('comparing with %s\n') % dest) |
241 o = repo.findoutgoing(other) | 242 o = repo.findoutgoing(other) |