hgsubversion | 15 Nov 22:30 2014

10 new revisions pushed by durin42 on 2014-11-15 21:30 GMT

10 new revisions:

Revision: bc3d0e496424
Branch:   default
Author:   Augie Fackler <raf@...>
Date:     Wed Nov  5 17:51:34 2014 UTC
Log:      Merge stable back into default.
https://code.google.com/p/hgsubversion/source/detail?r=bc3d0e496424

Revision: 85fe080461c6
Branch:   stable
Author:   peter.geer
Date:     Fri Nov 14 03:09:06 2014 UTC
Log:      genignore: fitler out empty lines in svn:ignore.
https://code.google.com/p/hgsubversion/source/detail?r=85fe080461c6

Revision: b7b0ed1e1455
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:48 2014 UTC
Log:      svnmeta: reorder code in __init__ for easier reading
https://code.google.com/p/hgsubversion/source/detail?r=b7b0ed1e1455

Revision: 7993379b9956
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:49 2014 UTC
Log:      layouts: use util.load in layout_from_config...
https://code.google.com/p/hgsubversion/source/detail?r=7993379b9956

(Continue reading)

Peter Geer | 14 Nov 04:38 2014

[PATCH] Fitler out empty lines in svn:ignore

# HG changeset patch
# User peter.geer
# Date 1415934546 18000
#      Thu Nov 13 22:09:06 2014 -0500
# Node ID d2a5e50475f9251a886ba8f27235d5df1b822ed6
# Parent  d07ccad28b1a8f8fdef4144812e1b9af75ac7f6b
Fitler out empty lines in svn:ignore.

diff -r d07ccad28b1a -r d2a5e50475f9 hgsubversion/svncommands.py
--- a/hgsubversion/svncommands.py	Sun Nov 02 01:34:34 2014 -0800
+++ b/hgsubversion/svncommands.py	Thu Nov 13 22:09:06 2014 -0500
 <at>  <at>  -370,7 +370,7  <at>  <at> 
         if 'svn:ignore' not in props:
             continue
         lines = props['svn:ignore'].strip().split('\n')
-        ignorelines += [dir and (dir + '/' + prop) or prop for prop in lines]
+        ignorelines += [dir and (dir + '/' + prop) or prop for prop in lines if prop.strip()]

     repo.wopener('.hgignore', 'w').write('\n'.join(ignorelines) + '\n')

--

-- 
You received this message because you are subscribed to the Google Groups "hgsubversion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hgsubversion+unsubscribe@...
To post to this group, send email to hgsubversion@...
Visit this group at http://groups.google.com/group/hgsubversion.
For more options, visit https://groups.google.com/d/optout.

Sean Farley | 6 Nov 21:06 2014
Picon

[PATCH 1 of 7] svnmeta: reorder code in __init__ for easier reading

# HG changeset patch
# User Sean Farley <sean.michael.farley@...>
# Date 1395678048 18000
#      Mon Mar 24 11:20:48 2014 -0500
# Node ID f5580b588e9307400605c37fdbfc06819ad338a2
# Parent  d07ccad28b1a8f8fdef4144812e1b9af75ac7f6b
svnmeta: reorder code in __init__ for easier reading

diff --git a/hgsubversion/svnmeta.py b/hgsubversion/svnmeta.py
--- a/hgsubversion/svnmeta.py
+++ b/hgsubversion/svnmeta.py
 <at>  <at>  -20,46 +20,49  <at>  <at>  class SVNMeta(object):
         """path is the path to the target hg repo.

         subdir is the subdirectory of the edits *on the svn server*.
         It is needed for stripping paths off in certain cases.
         """
+        # simple and public variables
         self.ui = repo.ui
         self.repo = repo
         self.path = os.path.normpath(repo.join('..'))
+        self.firstpulled = 0
+        self.lastdate = '1970-01-01 00:00:00 -0000'
+        self.addedtags = {}
+        self.deletedtags = {}
+
+        # private variables
         self._skiperror = skiperrorcheck
+        self._tags = None
+        self._layoutobj = None
(Continue reading)

hgsubversion | 5 Nov 18:50 2014

2 new revisions pushed by durin42 on 2014-11-05 17:49 GMT

2 new revisions:

Revision: 139a44a63090
Branch:   stable
Author:   Augie Fackler <raf@...>
Date:     Wed Nov  5 17:48:59 2014 UTC
Log:      Merge default into stable for a release.
https://code.google.com/p/hgsubversion/source/detail?r=139a44a63090

Revision: ee4d0f91eaf9
Branch:   stable
Author:   Augie Fackler <raf@...>
Date:     Wed Nov  5 17:49:07 2014 UTC
Log:      Added tag 1.7 for changeset 139a44a63090
https://code.google.com/p/hgsubversion/source/detail?r=ee4d0f91eaf9

==============================================================================
Revision: 139a44a63090
Branch:   stable
Author:   Augie Fackler <raf@...>
Date:     Wed Nov  5 17:48:59 2014 UTC
Log:      Merge default into stable for a release.
https://code.google.com/p/hgsubversion/source/detail?r=139a44a63090

==============================================================================
Revision: ee4d0f91eaf9
Branch:   stable
Author:   Augie Fackler <raf@...>
Date:     Wed Nov  5 17:49:07 2014 UTC
Log:      Added tag 1.7 for changeset 139a44a63090
(Continue reading)

hgsubversion | 4 Nov 03:40 2014

5 new revisions pushed by durin42 on 2014-11-04 02:40 GMT

5 new revisions:

Revision: 05aea77371a3
Branch:   default
Author:   Siddharth Agarwal <sid0@...>
Date:     Sun Nov  2 09:55:18 2014 UTC
Log:      util: add a decorator to disable Python's garbage collector...
https://code.google.com/p/hgsubversion/source/detail?r=05aea77371a3

Revision: 46cec117dda2
Branch:   default
Author:   Siddharth Agarwal <sid0@...>
Date:     Sun Nov  2 10:01:05 2014 UTC
Log:      maps.RevMap: disable GC while loading the revmap...
https://code.google.com/p/hgsubversion/source/detail?r=46cec117dda2

Revision: a321afbc3479
Branch:   default
Author:   Siddharth Agarwal <sid0@...>
Date:     Sun Nov  2 09:23:47 2014 UTC
Log:      maps.RevMap: while loading, read lastpulled and firstpulled  
once...
https://code.google.com/p/hgsubversion/source/detail?r=a321afbc3479

Revision: c54214bb6c4e
Branch:   default
Author:   Siddharth Agarwal <sid0@...>
Date:     Sun Nov  2 09:27:38 2014 UTC
Log:      maps: avoid O(n) property lookups on the node module...
https://code.google.com/p/hgsubversion/source/detail?r=c54214bb6c4e
(Continue reading)

Siddharth Agarwal | 2 Nov 11:07 2014

[PATCH 1 of 5] util: add a decorator to disable Python's garbage collector

# HG changeset patch
# User Siddharth Agarwal <sid0@...>
# Date 1414922118 28800
#      Sun Nov 02 01:55:18 2014 -0800
# Node ID 8e3ef203d6da3113ced5d92556d3e5d4b8c38bc5
# Parent  11c8de73b48a5c9b8aa102f6d1c32ca852766d7c
util: add a decorator to disable Python's garbage collector

Python's GC can cause serious performance regressions if lots of small objects
are created within a function. We've empirically found that that happens while
loading the revmap.

diff --git a/hgsubversion/util.py b/hgsubversion/util.py
--- a/hgsubversion/util.py
+++ b/hgsubversion/util.py
 <at>  <at>  -4,6 +4,7  <at>  <at> 
 import os
 import urllib
 import json
+import gc

 from mercurial import cmdutil
 from mercurial import error
 <at>  <at>  -55,6 +56,18  <at>  <at> 
     diff = header_re.sub(r'Index: \1' + '\n' + ('=' * 67), diff)
     return diff

+def gcdisable(orig):
+    """decorator to disable GC for a function or method"""
+    def wrapper(*args, **kwargs):
(Continue reading)

hgsubversion | 15 Oct 04:04 2014

4 new revisions pushed by durin42 on 2014-10-15 02:04 GMT

4 new revisions:

Revision: 2179747e7fea
Branch:   default
Author:   Siddharth Agarwal <sid0@...>
Date:     Tue Oct 14 06:55:27 2014 UTC
Log:      push: wrap exchange.push when localrepository.push isn't  
available...
https://code.google.com/p/hgsubversion/source/detail?r=2179747e7fea

Revision: 3a4d74823187
Branch:   default
Author:   Siddharth Agarwal <sid0@...>
Date:     Tue Oct 14 06:56:13 2014 UTC
Log:      pull: wrap exchange.pull if localrepository.pull isn't  
available...
https://code.google.com/p/hgsubversion/source/detail?r=3a4d74823187

Revision: 2d1f6687980b
Branch:   default
Author:   Siddharth Agarwal <sid0@...>
Date:     Tue Oct 14 06:57:21 2014 UTC
Log:      wrappers.push: call pull instead of repo.pull...
https://code.google.com/p/hgsubversion/source/detail?r=2d1f6687980b

Revision: 11c8de73b48a
Branch:   default
Author:   Siddharth Agarwal <sid0@...>
Date:     Tue Oct 14 20:36:32 2014 UTC
Log:      test_rebuildmeta: call exchange.pull if localrepository.pull  
(Continue reading)

hgsubversion | 15 Oct 00:38 2014

push by durin42 - test_util: fix up i18n monkeypatch for Mercurial 3.2... on 2014-10-14 22:38 GMT

Revision: 260212f056b7
Branch:   default
Author:   Siddharth Agarwal <sid0@...>
Date:     Tue Oct 14 22:12:24 2014 UTC
Log:      test_util: fix up i18n monkeypatch for Mercurial 3.2

Mercurial rev 0d0350cfc7ab changed the API a bit.
https://code.google.com/p/hgsubversion/source/detail?r=260212f056b7

Modified:
  /tests/test_util.py

--

-- 
You received this message because you are subscribed to the Google Groups "hgsubversion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hgsubversion+unsubscribe@...
To post to this group, send email to hgsubversion@...
Visit this group at http://groups.google.com/group/hgsubversion.
For more options, visit https://groups.google.com/d/optout.

Siddharth Agarwal | 14 Oct 22:43 2014

[PATCH 1 of 5 V3] test_util: fix up i18n monkeypatch for Mercurial 3.2

# HG changeset patch
# User Siddharth Agarwal <sid0@...>
# Date 1413269479 25200
#      Mon Oct 13 23:51:19 2014 -0700
# Node ID 9c679f66dbe45a56d30f9e250c0e9e8e154fee6d
# Parent  012965ab3bf7540c3d9158d6e9cd54d57b36a4a3
test_util: fix up i18n monkeypatch for Mercurial 3.2

Mercurial rev 0d0350cfc7ab changed the API a bit.

diff --git a/tests/test_util.py b/tests/test_util.py
--- a/tests/test_util.py
+++ b/tests/test_util.py
 <at>  <at>  -24,7 +24,7  <at>  <at> 
 from mercurial import node
 from mercurial import scmutil
 from mercurial import ui
-from mercurial import util
+from mercurial import util as hgutil
 from mercurial import extensions

 from hgsubversion import compathacks
 <at>  <at>  -454,9 +454,15  <at>  <at> 

         self.oldenv = dict([(k, os.environ.get(k, None),) for k in
                            ('LANG', 'LC_ALL', 'HGRCPATH',)])
-        self.oldt = i18n.t
-        os.environ['LANG'] = os.environ['LC_ALL'] = 'C'
-        i18n.t = gettext.translation('hg', i18n.localedir, fallback=True)
+        try:
(Continue reading)

Siddharth Agarwal | 14 Oct 19:28 2014

[PATCH 1 of 4 V2] test_util: fix up i18n monkeypatch for Mercurial 3.2

# HG changeset patch
# User Siddharth Agarwal <sid0@...>
# Date 1413269479 25200
#      Mon Oct 13 23:51:19 2014 -0700
# Node ID 9c679f66dbe45a56d30f9e250c0e9e8e154fee6d
# Parent  012965ab3bf7540c3d9158d6e9cd54d57b36a4a3
test_util: fix up i18n monkeypatch for Mercurial 3.2

Mercurial rev 0d0350cfc7ab changed the API a bit.

diff --git a/tests/test_util.py b/tests/test_util.py
--- a/tests/test_util.py
+++ b/tests/test_util.py
 <at>  <at>  -24,7 +24,7  <at>  <at> 
 from mercurial import node
 from mercurial import scmutil
 from mercurial import ui
-from mercurial import util
+from mercurial import util as hgutil
 from mercurial import extensions

 from hgsubversion import compathacks
 <at>  <at>  -454,9 +454,15  <at>  <at> 

         self.oldenv = dict([(k, os.environ.get(k, None),) for k in
                            ('LANG', 'LC_ALL', 'HGRCPATH',)])
-        self.oldt = i18n.t
-        os.environ['LANG'] = os.environ['LC_ALL'] = 'C'
-        i18n.t = gettext.translation('hg', i18n.localedir, fallback=True)
+        try:
(Continue reading)

Siddharth Agarwal | 14 Oct 08:57 2014

[PATCH 1 of 4] test_util: fix up i18n monkeypatch for Mercurial 3.2

# HG changeset patch
# User Siddharth Agarwal <sid0@...>
# Date 1413269479 25200
#      Mon Oct 13 23:51:19 2014 -0700
# Node ID 9c679f66dbe45a56d30f9e250c0e9e8e154fee6d
# Parent  012965ab3bf7540c3d9158d6e9cd54d57b36a4a3
test_util: fix up i18n monkeypatch for Mercurial 3.2

Mercurial rev 0d0350cfc7ab changed the API a bit.

diff --git a/tests/test_util.py b/tests/test_util.py
--- a/tests/test_util.py
+++ b/tests/test_util.py
 <at>  <at>  -24,7 +24,7  <at>  <at> 
 from mercurial import node
 from mercurial import scmutil
 from mercurial import ui
-from mercurial import util
+from mercurial import util as hgutil
 from mercurial import extensions

 from hgsubversion import compathacks
 <at>  <at>  -454,9 +454,15  <at>  <at> 

         self.oldenv = dict([(k, os.environ.get(k, None),) for k in
                            ('LANG', 'LC_ALL', 'HGRCPATH',)])
-        self.oldt = i18n.t
-        os.environ['LANG'] = os.environ['LC_ALL'] = 'C'
-        i18n.t = gettext.translation('hg', i18n.localedir, fallback=True)
+        try:
(Continue reading)


Gmane