mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
i18n: merge with mpm
This commit is contained in:
commit
6f502a2558
@ -866,7 +866,9 @@ class svn_source(converter_source):
|
||||
pool = Pool()
|
||||
rpath = '/'.join([self.baseurl, urllib.quote(path)]).strip('/')
|
||||
entries = svn.client.ls(rpath, optrev(revnum), True, self.ctx, pool)
|
||||
return ((path + '/' + p) for p, e in entries.iteritems()
|
||||
if path:
|
||||
path += '/'
|
||||
return ((path + p) for p, e in entries.iteritems()
|
||||
if e.kind == svn.core.svn_node_file)
|
||||
|
||||
def getrelpath(self, path, module=None):
|
||||
|
@ -42,8 +42,12 @@ def relink(ui, repo, origin=None, **opts):
|
||||
hg.remoteui(repo, opts),
|
||||
ui.expandpath(origin or 'default-relink', origin or 'default'))
|
||||
if not src.local():
|
||||
raise util.Abort('must specify local origin repository')
|
||||
raise util.Abort(_('must specify local origin repository'))
|
||||
ui.status(_('relinking %s to %s\n') % (src.store.path, repo.store.path))
|
||||
if repo.root == src.root:
|
||||
ui.status(_('there is nothing to relink\n'))
|
||||
return
|
||||
|
||||
locallock = repo.lock()
|
||||
try:
|
||||
remotelock = src.lock()
|
||||
|
@ -31,6 +31,12 @@ create source repository
|
||||
$ echo a >> b
|
||||
$ hg ci -Am changefiles
|
||||
|
||||
don't sit forever trying to double-lock the source repo
|
||||
|
||||
$ hg relink .
|
||||
relinking $TESTTMP/repo/.hg/store to $TESTTMP/repo/.hg/store
|
||||
there is nothing to relink
|
||||
|
||||
Test files are read in binary mode
|
||||
|
||||
$ python -c "file('.hg/store/data/dummy.i', 'wb').write('a\r\nb\n')"
|
||||
|
Loading…
Reference in New Issue
Block a user