mirror of
https://github.com/facebook/sapling.git
synced 2024-12-29 08:02:24 +03:00
Merge with default
This commit is contained in:
commit
6c8677d403
@ -10,7 +10,7 @@ from mercurial import extensions, util, cmdutil, commands, error, bundlerepo
|
||||
from mercurial import hg, changegroup, exchange
|
||||
from mercurial.extensions import wrapfunction
|
||||
from hgext import pager
|
||||
from mercurial.node import hex, nullrev, nullid
|
||||
from mercurial.node import hex, nullrev, nullid, short
|
||||
from mercurial.i18n import _
|
||||
import errno, os, re, glob, time
|
||||
|
||||
@ -72,11 +72,8 @@ def backups(ui, repo, *pats, **opts):
|
||||
try:
|
||||
other = hg.peer(repo, opts, source)
|
||||
except error.LookupError as ex:
|
||||
if not '@' in str(ex):
|
||||
raise
|
||||
missingrev = str(ex).split('@')[-1].split(':')[0]
|
||||
ui.status("\nwarning: unable to open bundle %s - missing parent rev %s\n" %
|
||||
(source, missingrev))
|
||||
(source, short(ex.name)))
|
||||
continue
|
||||
revs, checkout = hg.addbranchrevs(repo, other, branches, opts.get('rev'))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user