D2546: tests: port test-bookmarks.t extension to Python 3

2018-03-02 Thread durin42 (Augie Fackler)
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG4df06d2f60e1: tests: port test-bookmarks.t extension to 
Python 3 (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2546?vs=6340=6359

REVISION DETAIL
  https://phab.mercurial-scm.org/D2546

AFFECTED FILES
  tests/test-bookmarks.t

CHANGE DETAILS

diff --git a/tests/test-bookmarks.t b/tests/test-bookmarks.t
--- a/tests/test-bookmarks.t
+++ b/tests/test-bookmarks.t
@@ -980,14 +980,14 @@
   >tr = orig(self, desc, report)
   >def sleep(*args, **kwargs):
   >retry = 20
-  >while retry > 0 and not os.path.exists("$TESTTMP/unpause"):
+  >while retry > 0 and not os.path.exists(b"$TESTTMP/unpause"):
   >retry -= 1
   >time.sleep(0.5)
-  >if os.path.exists("$TESTTMP/unpause"):
-  >os.remove("$TESTTMP/unpause")
+  >if os.path.exists(b"$TESTTMP/unpause"):
+  >os.remove(b"$TESTTMP/unpause")
   ># It is important that this finalizer start with 'a', so it runs before
   ># the changelog finalizer appends to the changelog.
-  >tr.addfinalize('a-sleep', sleep)
+  >tr.addfinalize(b'a-sleep', sleep)
   >return tr
   > 
   > def extsetup(ui):



To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D2546: tests: port test-bookmarks.t extension to Python 3

2018-03-02 Thread durin42 (Augie Fackler)
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  1. skip-blame it's just b prefixes

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2546

AFFECTED FILES
  tests/test-bookmarks.t

CHANGE DETAILS

diff --git a/tests/test-bookmarks.t b/tests/test-bookmarks.t
--- a/tests/test-bookmarks.t
+++ b/tests/test-bookmarks.t
@@ -980,14 +980,14 @@
   >tr = orig(self, desc, report)
   >def sleep(*args, **kwargs):
   >retry = 20
-  >while retry > 0 and not os.path.exists("$TESTTMP/unpause"):
+  >while retry > 0 and not os.path.exists(b"$TESTTMP/unpause"):
   >retry -= 1
   >time.sleep(0.5)
-  >if os.path.exists("$TESTTMP/unpause"):
-  >os.remove("$TESTTMP/unpause")
+  >if os.path.exists(b"$TESTTMP/unpause"):
+  >os.remove(b"$TESTTMP/unpause")
   ># It is important that this finalizer start with 'a', so it runs before
   ># the changelog finalizer appends to the changelog.
-  >tr.addfinalize('a-sleep', sleep)
+  >tr.addfinalize(b'a-sleep', sleep)
   >return tr
   > 
   > def extsetup(ui):



To: durin42, #hg-reviewers
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel