changeset 13903:a6c69abd91a0

merge with crew
author Matt Mackall <mpm@selenic.com>
date Wed, 06 Apr 2011 15:15:06 -0500
parents fab10e7cacd6 (current diff) a7cd0eee396b (diff)
children a1e418070ff6
files
diffstat 7 files changed, 23 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/bugzilla.py	Wed Apr 06 15:14:51 2011 -0500
+++ b/hgext/bugzilla.py	Wed Apr 06 15:15:06 2011 -0500
@@ -21,7 +21,7 @@
 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 @@
 
 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 @@
 
     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``.
--- a/hgext/relink.py	Wed Apr 06 15:14:51 2011 -0500
+++ b/hgext/relink.py	Wed Apr 06 15:15:06 2011 -0500
@@ -38,9 +38,9 @@
     """
     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))
--- a/mercurial/commands.py	Wed Apr 06 15:14:51 2011 -0500
+++ b/mercurial/commands.py	Wed Apr 06 15:15:06 2011 -0500
@@ -894,7 +894,12 @@
 
     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]
--- a/mercurial/hg.py	Wed Apr 06 15:14:51 2011 -0500
+++ b/mercurial/hg.py	Wed Apr 06 15:15:06 2011 -0500
@@ -55,10 +55,10 @@
     '''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 = {
--- a/tests/test-commit.t	Wed Apr 06 15:14:51 2011 -0500
+++ b/tests/test-commit.t	Wed Apr 06 15:15:06 2011 -0500
@@ -32,7 +32,7 @@
   $ 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!
--- a/tests/test-hg-parseurl.py	Wed Apr 06 15:14:51 2011 -0500
+++ b/tests/test-hg-parseurl.py	Wed Apr 06 15:15:06 2011 -0500
@@ -8,3 +8,6 @@
 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')
--- a/tests/test-hg-parseurl.py.out	Wed Apr 06 15:14:51 2011 -0500
+++ b/tests/test-hg-parseurl.py.out	Wed Apr 06 15:15:06 2011 -0500
@@ -3,3 +3,6 @@
 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', [])