changeset 20562:35ac807f941c stable

merge with i18n
author Matt Mackall <mpm@selenic.com>
date Mon, 24 Feb 2014 18:48:48 -0600
parents 5f683209f5b6 (diff) 708009db9410 (current diff)
children 0ad353831461 f1c3ba167b0c
files
diffstat 6 files changed, 33 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/rebase.py	Sun Feb 23 18:03:47 2014 +0900
+++ b/hgext/rebase.py	Mon Feb 24 18:48:48 2014 -0600
@@ -404,6 +404,9 @@
 
         if currentbookmarks:
             updatebookmarks(repo, targetnode, nstate, currentbookmarks)
+            if activebookmark not in repo._bookmarks:
+                # active bookmark was divergent one and has been deleted
+                activebookmark = None
 
         clearstatus(repo)
         ui.note(_("rebase completed\n"))
--- a/mercurial/hgweb/server.py	Sun Feb 23 18:03:47 2014 +0900
+++ b/mercurial/hgweb/server.py	Mon Feb 24 18:48:48 2014 -0600
@@ -331,6 +331,7 @@
         # as ascii (clown fail), because the default Python Unicode
         # codec is hardcoded as ascii.
 
+        sys.argv # unwrap demand-loader so that reload() works
         reload(sys) # resurrect sys.setdefaultencoding()
         oldenc = sys.getdefaultencoding()
         sys.setdefaultencoding("latin1") # or any full 8-bit encoding
--- a/mercurial/pathencode.c	Sun Feb 23 18:03:47 2014 +0900
+++ b/mercurial/pathencode.c	Mon Feb 24 18:48:48 2014 -0600
@@ -530,7 +530,7 @@
 	static const uint32_t twobytes[8];
 
 	static const uint32_t onebyte[8] = {
-		~0, 0xffff3ffe, ~0, ~0, ~0, ~0, ~0, ~0,
+		~0U, 0xffff3ffe, ~0U, ~0U, ~0U, ~0U, ~0U, ~0U,
 	};
 
 	return _encode(twobytes, onebyte, dest, 0, destsize, src, len, 0);
--- a/mercurial/verify.py	Sun Feb 23 18:03:47 2014 +0900
+++ b/mercurial/verify.py	Mon Feb 24 18:48:48 2014 -0600
@@ -38,7 +38,7 @@
     mf = repo.manifest
     lrugetctx = util.lrucachefunc(repo.changectx)
 
-    if not repo.cancopy():
+    if not repo.url().startswith('file:'):
         raise util.Abort(_("cannot verify bundle or remote repos"))
 
     def err(linkrev, msg, filename=None):
--- a/tests/test-phases.t	Sun Feb 23 18:03:47 2014 +0900
+++ b/tests/test-phases.t	Mon Feb 24 18:48:48 2014 -0600
@@ -549,4 +549,13 @@
   o  0 public A
   
 
+test verify repo containing hidden changesets, which should not abort just
+because repo.cancopy() is False
 
+  $ cd ../initialrepo
+  $ hg verify
+  checking changesets
+  checking manifests
+  crosschecking files in changesets and manifests
+  checking files
+  7 files, 8 changesets, 7 total revisions
--- a/tests/test-rebase-bookmarks.t	Sun Feb 23 18:03:47 2014 +0900
+++ b/tests/test-rebase-bookmarks.t	Mon Feb 24 18:48:48 2014 -0600
@@ -85,6 +85,24 @@
   |/
   o  0: 'A' bookmarks: Y@diverge
   
+Do not try to keep active but deleted divergent bookmark
+
+  $ cd ..
+  $ hg clone -q a a4
+
+  $ cd a4
+  $ hg up -q 2
+  $ hg book W@diverge
+
+  $ hg rebase -s W -d .
+  saved backup bundle to $TESTTMP/a4/.hg/strip-backup/*-backup.hg (glob)
+
+  $ hg bookmarks
+     W                         3:0d3554f74897
+     X                         1:6c81ed0049f8
+     Y                         2:49cb3485fa0c
+     Z                         2:49cb3485fa0c
+
 Keep bookmarks to the correct rebased changeset
 
   $ cd ..