mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
merge with crew
This commit is contained in:
commit
2f6eb4eb14
@ -21,7 +21,7 @@ Three basic modes of access to Bugzilla are provided:
|
||||
2. Check data via the Bugzilla XMLRPC interface and submit bug change
|
||||
via email to Bugzilla email interface. Requires Bugzilla 3.4 or later.
|
||||
|
||||
2. Writing directly to the Bugzilla database. Only Bugzilla installations
|
||||
3. Writing directly to the Bugzilla database. Only Bugzilla installations
|
||||
using MySQL are supported. Requires Python MySQLdb.
|
||||
|
||||
Writing directly to the database is susceptible to schema changes, and
|
||||
@ -93,7 +93,7 @@ bugzilla.strip
|
||||
|
||||
web.baseurl
|
||||
Base URL for browsing Mercurial repositories. Referenced from
|
||||
templates as {hgweb}.
|
||||
templates as ``{hgweb}``.
|
||||
|
||||
Configuration items common to XMLRPC+email and MySQL access modes:
|
||||
|
||||
@ -104,7 +104,7 @@ bugzilla.usermap
|
||||
|
||||
committer = Bugzilla user
|
||||
|
||||
See also the [usermap] section.
|
||||
See also the ``[usermap]`` section.
|
||||
|
||||
The ``[usermap]`` section is used to specify mappings of Mercurial
|
||||
committer email to Bugzilla user email. See also ``bugzilla.usermap``.
|
||||
|
@ -38,9 +38,9 @@ def relink(ui, repo, origin=None, **opts):
|
||||
"""
|
||||
if not hasattr(util, 'samefile') or not hasattr(util, 'samedevice'):
|
||||
raise util.Abort(_('hardlinks are not supported on this system'))
|
||||
src = hg.repository(
|
||||
hg.remoteui(repo, opts),
|
||||
ui.expandpath(origin or 'default-relink', origin or 'default'))
|
||||
src = hg.repository(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'))
|
||||
ui.status(_('relinking %s to %s\n') % (src.store.path, repo.store.path))
|
||||
|
@ -894,7 +894,12 @@ def commit(ui, repo, *pats, **opts):
|
||||
|
||||
node = cmdutil.commit(ui, repo, commitfunc, pats, opts)
|
||||
if not node:
|
||||
ui.status(_("nothing changed\n"))
|
||||
stat = repo.status(match=cmdutil.match(repo, pats, opts))
|
||||
if stat[3]:
|
||||
ui.status(_("nothing changed (%d missing files, see 'hg status')\n")
|
||||
% len(stat[3]))
|
||||
else:
|
||||
ui.status(_("nothing changed\n"))
|
||||
return 1
|
||||
|
||||
ctx = repo[node]
|
||||
|
@ -55,10 +55,10 @@ def parseurl(path, branches=None):
|
||||
'''parse url#branch, returning (url, (branch, branches))'''
|
||||
|
||||
u = url.url(path)
|
||||
if not u.fragment:
|
||||
return path, (None, branches or [])
|
||||
branch = u.fragment
|
||||
u.fragment = None
|
||||
branch = None
|
||||
if u.fragment:
|
||||
branch = u.fragment
|
||||
u.fragment = None
|
||||
return str(u), (branch, branches or [])
|
||||
|
||||
schemes = {
|
||||
|
@ -32,7 +32,7 @@ commit added file that has been deleted
|
||||
$ hg add bar
|
||||
$ rm bar
|
||||
$ hg commit -m commit-8
|
||||
nothing changed
|
||||
nothing changed (1 missing files, see 'hg status')
|
||||
[1]
|
||||
$ hg commit -m commit-8-2 bar
|
||||
abort: bar: file not found!
|
||||
|
@ -8,3 +8,6 @@ testparse('http://example.com/an/anchor#foo')
|
||||
testparse('http://example.com/no/anchor/branches', branch=['foo'])
|
||||
testparse('http://example.com/an/anchor/branches#bar', branch=['foo'])
|
||||
testparse('http://example.com/an/anchor/branches-None#foo', branch=None)
|
||||
testparse('http://example.com/')
|
||||
testparse('http://example.com')
|
||||
testparse('http://example.com#foo')
|
||||
|
@ -3,3 +3,6 @@ http://example.com/an/anchor, branches: ('foo', [])
|
||||
http://example.com/no/anchor/branches, branches: (None, ['foo'])
|
||||
http://example.com/an/anchor/branches, branches: ('bar', ['foo'])
|
||||
http://example.com/an/anchor/branches-None, branches: ('foo', [])
|
||||
http://example.com/, branches: (None, [])
|
||||
http://example.com/, branches: (None, [])
|
||||
http://example.com/, branches: ('foo', [])
|
||||
|
Loading…
Reference in New Issue
Block a user