hgsubversion | 30 Jan 20:15 2015

12 new revisions pushed by durin42 on 2015-01-30 19:15 GMT

12 new revisions:

Revision: 631a572658c2
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:53 2014 UTC
Log:      svnmeta: add generated cached branch property
https://code.google.com/p/hgsubversion/source/detail?r=631a572658c2

Revision: fc48e1065926
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:53 2014 UTC
Log:      wrappers: use meta.branch instead of ui.config directly
https://code.google.com/p/hgsubversion/source/detail?r=fc48e1065926

Revision: 4ba1481484e6
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:54 2014 UTC
Log:      svnmeta: copy layout_from_commit from detect...
https://code.google.com/p/hgsubversion/source/detail?r=4ba1481484e6

Revision: 8b3b456afd5f
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:54 2014 UTC
Log:      svnmeta: copy layout_from_subversion from detect
https://code.google.com/p/hgsubversion/source/detail?r=8b3b456afd5f

(Continue reading)

zaazbbcn | 7 Jan 07:54 2015
Picon

Unable to parse URL '/svn/wx/!svn/bc/75524/wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/overviews/richtextctrl overview.rst

when pull from "https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/" met a "Unable to parse URL" error. it seems hg or hg-svn can not parse url contain space char.

正在拉自 https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/
[r75524] AG: Updated some Phoenix documentation:
M wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/overviews/html_overview.rst
M wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/overviews/index.rst
A wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/overviews/richtextctrl overview.rst
A wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/snippets/python/converted/FileSystemHandler.GetAnchor.1.py
A wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/snippets/python/converted/FileSystemHandler.GetLeftLocation.1.py
A wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/snippets/python/converted/FileSystemHandler.GetProtocol.1.py
A wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/snippets/python/converted/FileSystemHandler.GetRightLocation.1.py
A wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/snippets/python/converted/Font.__init__.1.py
A wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/snippets/python/converted/Font.__init__.2.py
A wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/snippets/python/converted/FontInfo.1.py
A wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/snippets/python/converted/ModalDialogHook.1.py
A wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/snippets/python/converted/Point.__init__.1.py
A wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/snippets/python/converted/TextUrlEvent.Clone.1.py
A wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/snippets/python/converted/adv.WizardPageSimple.Chain.2.py
A wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/snippets/python/converted/adv.WizardPageSimple.Chain.3.py
A wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/snippets/python/converted/richtext.RichTextEvent.Clone.1.py
A wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/snippets/python/converted/richtext.RichTextHTMLHandler.SetFontSizeMapping.1.py
A wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/snippets/python/converted/richtext.SymbolPickerDialog.1.py
M wxPython/Phoenix/trunk/sphinxtools/constants.py
中止: ("Unable to parse URL '/svn/wx/!svn/bc/75524/wxPython/Phoenix/trunk/docs/sphinx/rest_substitutions/overviews/richtextctrl overview.rst'", 175009)
[command returned code 255 Wed Jan 07 14:11:56 2015]

Tortoisehg 3.2.3 windows7 64bit.

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to hgsubversion-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/hgsubversion.
For more options, visit https://groups.google.com/d/optout.
hgsubversion | 29 Dec 23:34 2014

push by durin42 - svnexternals: fix for Mercurial 3.3+... on 2014-12-29 22:34 GMT

Revision: 9d5cff8d7f67
Branch:   default
Author:   Siddharth Agarwal <sid0@...>
Date:     Mon Dec 29 21:15:23 2014 UTC
Log:      svnexternals: fix for Mercurial 3.3+

Mercurial rev 40e62fbd7356 renamed the '_ui' field on subrepos to 'ui'. Set
'ui' everywhere and use it to maintain compatibility across Mercurial  
versions.
https://code.google.com/p/hgsubversion/source/detail?r=9d5cff8d7f67

Modified:
  /hgsubversion/svnexternals.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 | 29 Dec 22:21 2014

[PATCH] svnexternals: fix for Mercurial 3.3+

# HG changeset patch
# User Siddharth Agarwal <sid0@...>
# Date 1419887723 28800
#      Mon Dec 29 13:15:23 2014 -0800
# Node ID 78269dbfb6ae7d719de0587759de890312b09655
# Parent  9a722b5246dff6819576b2b7f424fb62a8968405
svnexternals: fix for Mercurial 3.3+

Mercurial rev 40e62fbd7356 renamed the '_ui' field on subrepos to 'ui'. Set
'ui' everywhere and use it to maintain compatibility across Mercurial versions.

diff --git a/hgsubversion/svnexternals.py b/hgsubversion/svnexternals.py
--- a/hgsubversion/svnexternals.py
+++ b/hgsubversion/svnexternals.py
 <at>  <at>  -390,6 +390,10  <at>  <at> 
     def __init__(self, ctx, path, state):
         state = (state[0].split(':', 1)[1], state[1])
         super(svnsubrepo, self).__init__(ctx, path, state)
+        # Mercurial 3.3+ set 'ui' rather than '_ui' -- set that and use 'ui'
+        # everywhere to maintain compatibility across versions
+        if not hgutil.safehasattr(self, 'ui'):
+            self.ui = ctx._repo.ui

     def get(self, state, *args, **kwargs):
         # Resolve source first
 <at>  <at>  -398,11 +402,11  <at>  <at> 
         try:
             # Getting the root SVN repository URL is expensive.
             # Assume the externals is absolute.
-            source = resolvesource(self._ui, None, source)
+            source = resolvesource(self.ui, None, source)
         except RelativeSourceError:
             svnurl = self._ctx._repo.ui.expandpath('default')
             svnroot = getsvninfo(util.normalize_url(svnurl))[1]
-            source = resolvesource(self._ui, svnroot, source)
+            source = resolvesource(self.ui, svnroot, source)
         # hg 1.9 and higher, append the rev as a peg revision to
         # the source URL, so we cannot add our own. We assume
         # that "-r10 url <at> 2" will be similar to "url <at> 10" most of

--

-- 
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.

hgsubversion | 16 Dec 19:37 2014

2 new revisions pushed by durin42 on 2014-12-16 18:37 GMT

2 new revisions:

Revision: 9e85feb93984
Branch:   default
Author:   Mateusz Kwapich <mitrandir@...>
Date:     Sat Dec 13 00:17:11 2014 UTC
Log:      wrappers: improve push performance by reusing the existing  
metadata...
https://code.google.com/p/hgsubversion/source/detail?r=9e85feb93984

Revision: 9a722b5246df
Branch:   default
Author:   Mateusz Kwapich <mitrandir@...>
Date:     Sat Dec 13 00:32:34 2014 UTC
Log:      maps: cache hashes() for the revmap...
https://code.google.com/p/hgsubversion/source/detail?r=9a722b5246df

==============================================================================
Revision: 9e85feb93984
Branch:   default
Author:   Mateusz Kwapich <mitrandir@...>
Date:     Sat Dec 13 00:17:11 2014 UTC
Log:      wrappers: improve push performance by reusing the existing  
metadata

Push operation for n commits regenerated SVNMeta class 2*n+1 times
(one time at beginning, n times in push() loop, 1 time per each of n
pulls). This operation is very costly when the revision map is big.

This commit reuses this metadata every time when there is no rebase
made between svn commits which leads to 1 metadata rebuild in optimistic
case and n+1 metadata rebuilds in pessimistic case (rebase after every  
commit).

To achieve this I added extra parameter to pull command to pass metadata
to it.

All unit tests are passing for this change.
https://code.google.com/p/hgsubversion/source/detail?r=9e85feb93984

Modified:
  /hgsubversion/wrappers.py

==============================================================================
Revision: 9a722b5246df
Branch:   default
Author:   Mateusz Kwapich <mitrandir@...>
Date:     Sat Dec 13 00:32:34 2014 UTC
Log:      maps: cache hashes() for the revmap

This fix caches the hashes() results for revision map. For big
repos the revision map can be huge (>30MB) and this fix is saving us
some time (~0.7s per every subsequent call) by avoiding reversing rev
dictionary multiple times.
https://code.google.com/p/hgsubversion/source/detail?r=9a722b5246df

Modified:
  /hgsubversion/maps.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.

Mateusz Kwapich | 16 Dec 01:56 2014

[PATCH 1 of 2] wrappers: improve push performance by reusing the existing metadata

# HG changeset patch
# User Mateusz Kwapich <mitrandir@...>
# Date 1418429831 28800
#      Fri Dec 12 16:17:11 2014 -0800
# Node ID edaa02033c3bdbed2be26f41aa4f9dad24dd7338
# Parent  7bbe120be1938ec17608bfcf25f747cd7a1bc2fc
wrappers: improve push performance by reusing the existing metadata

Push operation for n commits regenerated SVNMeta class 2*n+1 times
(one time at beginning, n times in push() loop, 1 time per each of n
pulls). This operation is very costly when the revision map is big.

This commit reuses this metadata every time when there is no rebase
made between svn commits which leads to 1 metadata rebuild in optimistic
case and n+1 metadata rebuilds in pessimistic case (rebase after every commit).

To achieve this I added extra parameter to pull command to pass metadata
to it.

All unit tests are passing for this change.

diff --git a/hgsubversion/wrappers.py b/hgsubversion/wrappers.py
--- a/hgsubversion/wrappers.py
+++ b/hgsubversion/wrappers.py
 <at>  <at>  -261,6 +261,8  <at>  <at> 

                 # Don't trust the pre-rebase repo and context.
                 repo = getlocalpeer(ui, {}, meta.path)
+                meta = repo.svnmeta(svn.uuid, svn.subdir)
+                hashes = meta.revmap.hashes()
                 tip_ctx = repo[tip_ctx.node()]
                 for c in tip_ctx.descendants():
                     rebasesrc = c.extra().get('rebase_source')
 <at>  <at>  -289,10 +291,8  <at>  <at> 

             # 5. Pull the latest changesets from subversion, which will
             # include the one we just committed (and possibly others).
-            r = pull(repo, dest, force=force)
+            r = pull(repo, dest, force=force, meta=meta)
             assert not r or r == 0
-            meta = repo.svnmeta(svn.uuid, svn.subdir)
-            hashes = meta.revmap.hashes()

             # 6. Move our tip to the latest pulled tip
             for c in tip_ctx.descendants():
 <at>  <at>  -379,7 +379,7  <at>  <at> 
     else:
         return orig(repo, remote, force, revs, newbranch, bookmarks=bookmarks)

-def pull(repo, source, heads=[], force=False):
+def pull(repo, source, heads=[], force=False, meta=None):
     """pull new revisions from Subversion"""
     assert source.capable('subversion')
     svn_url = source.svnurl
 <at>  <at>  -394,7 +394,8  <at>  <at> 
             repo.ui.note('fetching stupidly...\n')

         svn = source.svn
-        meta = repo.svnmeta(svn.uuid, svn.subdir)
+        if meta is None:
+            meta = repo.svnmeta(svn.uuid, svn.subdir)

         stopat_rev = util.parse_revnum(svn, checkout)

--

-- 
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 | 15 Dec 17:57 2014
Picon

[PATCH 1 of 7] svnmeta: add generated cached branch property

# HG changeset patch
# User Sean Farley <sean.michael.farley@...>
# Date 1395678053 18000
#      Mon Mar 24 11:20:53 2014 -0500
# Node ID 6f3f6a4c028576150e5b12a241a954864e836707
# Parent  4dbba18b77bad965218663b5e1644f4de622b235
svnmeta: add generated cached branch property

diff --git a/hgsubversion/svnmeta.py b/hgsubversion/svnmeta.py
--- a/hgsubversion/svnmeta.py
+++ b/hgsubversion/svnmeta.py
 <at>  <at>  -54,10 +54,11  <at>  <at>  class SVNMeta(object):
         self._gen_cachedconfig('defaultauthors', True)
         self._gen_cachedconfig('caseignoreauthors', False)
         self._gen_cachedconfig('defaulthost', self.uuid)
         self._gen_cachedconfig('usebranchnames', True)
         self._gen_cachedconfig('defaultmessage', '')
+        self._gen_cachedconfig('branch', '')

         # misc
         self.branches = util.load(self.branch_info_file) or {}
         self.prevbranches = dict(self.branches)
         self._layout = layouts.detect.layout_from_file(self)

--

-- 
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.

hgsubversion | 15 Dec 15:25 2014

4 new revisions pushed by durin42 on 2014-12-15 14:25 GMT

4 new revisions:

Revision: d29a3f988b74
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:53 2014 UTC
Log:      svnmeta: remove unneeded call to self.taglocations...
https://code.google.com/p/hgsubversion/source/detail?r=d29a3f988b74

Revision: 3549a84bdebe
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:53 2014 UTC
Log:      svnmeta: remove taglocations property...
https://code.google.com/p/hgsubversion/source/detail?r=3549a84bdebe

Revision: 13f8e9cc90c6
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:53 2014 UTC
Log:      layouts: generate cached taglocations property...
https://code.google.com/p/hgsubversion/source/detail?r=13f8e9cc90c6

Revision: 7bbe120be193
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:53 2014 UTC
Log:      layouts: turn taglocations method into a property...
https://code.google.com/p/hgsubversion/source/detail?r=7bbe120be193

==============================================================================
Revision: d29a3f988b74
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:53 2014 UTC
Log:      svnmeta: remove unneeded call to self.taglocations

This is the only call to taglocations, therefore we remove it so that we can
remove the property in the next patch.
https://code.google.com/p/hgsubversion/source/detail?r=d29a3f988b74

Modified:
  /hgsubversion/svnmeta.py

==============================================================================
Revision: 3549a84bdebe
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:53 2014 UTC
Log:      svnmeta: remove taglocations property

This is now unused so we'll remove it in favor of generating a cached  
property.
https://code.google.com/p/hgsubversion/source/detail?r=3549a84bdebe

Modified:
  /hgsubversion/svnmeta.py

==============================================================================
Revision: 13f8e9cc90c6
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:53 2014 UTC
Log:      layouts: generate cached taglocations property

Now that we have the machinery, we use the generator to define this
property. As a bonus, we no longer have to import util which saves from  
having
to import hgext_util.
https://code.google.com/p/hgsubversion/source/detail?r=13f8e9cc90c6

Modified:
  /hgsubversion/layouts/standard.py

==============================================================================
Revision: 7bbe120be193
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:53 2014 UTC
Log:      layouts: turn taglocations method into a property

We no longer need to pass the meta path since we have an internal reference  
to
the meta object, so we remove the parameter from the taglocations method.
https://code.google.com/p/hgsubversion/source/detail?r=7bbe120be193

Modified:
  /hgsubversion/layouts/base.py
  /hgsubversion/layouts/custom.py
  /hgsubversion/layouts/single.py
  /hgsubversion/layouts/standard.py
  /hgsubversion/svncommands.py
  /hgsubversion/svnmeta.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.

Sean Farley | 14 Dec 22:22 2014
Picon

[PATCH 1 of 4] svnmeta: remove unneeded call to self.taglocations

# HG changeset patch
# User Sean Farley <sean.michael.farley@...>
# Date 1395678053 18000
#      Mon Mar 24 11:20:53 2014 -0500
# Node ID 37042067ea50e75edd5dd5803e586674725bf502
# Parent  1553a4b612218ff7f909afe2970f07e1df7cfc81
svnmeta: remove unneeded call to self.taglocations

This is the only call to taglocations, therefore we remove it so that we can
remove the property in the next patch.

diff --git a/hgsubversion/svnmeta.py b/hgsubversion/svnmeta.py
--- a/hgsubversion/svnmeta.py
+++ b/hgsubversion/svnmeta.py
 <at>  <at>  -387,11 +387,12  <at>  <at>  class SVNMeta(object):

         Note that it's only a tag if it was copied from the path '' in a branch
         (or tag) we have, for our purposes.
         """
         path = self.normalize(path)
-        return self.layoutobj.get_path_tag(path, self.taglocations)
+        tloc = self.layoutobj.taglocations(self.metapath)
+        return self.layoutobj.get_path_tag(path, tloc)

     def split_branch_path(self, path, existing=True):
         """Figure out which branch inside our repo this path represents, and
         also figure out which path inside that branch it is.

--

-- 
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.

hgsubversion | 11 Dec 17:22 2014

12 new revisions pushed by durin42 on 2014-12-11 16:21 GMT

12 new revisions:

Revision: ada9b39a9eb8
Branch:   default
Author:   Augie Fackler <raf@...>
Date:     Mon Dec  8 21:49:52 2014 UTC
Log:      stupid: remove code that's only used by hg < 1.9...
https://code.google.com/p/hgsubversion/source/detail?r=ada9b39a9eb8

Revision: 2ae577a4cd56
Branch:   default
Author:   Augie Fackler <raf@...>
Date:     Mon Dec  8 21:50:22 2014 UTC
Log:      stupid: dedent some code...
https://code.google.com/p/hgsubversion/source/detail?r=2ae577a4cd56

Revision: b5520673f6f2
Branch:   stable
Author:   Sean Farley <sean.michael.farley@...>
Date:     Wed Dec 10 22:04:55 2014 UTC
Log:      pull: adapt from upstream changes to transactions...
https://code.google.com/p/hgsubversion/source/detail?r=b5520673f6f2

Revision: c791efb7082a
Branch:   default
Author:   Augie Fackler <raf@...>
Date:     Thu Dec 11 03:47:18 2014 UTC
Log:      Merge with stable.
https://code.google.com/p/hgsubversion/source/detail?r=c791efb7082a

Revision: e74fad41077b
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:51 2014 UTC
Log:      svnmeta: copy util.getmessage to here so we can refactor...
https://code.google.com/p/hgsubversion/source/detail?r=e74fad41077b

Revision: 5aecb986a5a0
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:51 2014 UTC
Log:      svnmeta: generate cached defaultmessage property
https://code.google.com/p/hgsubversion/source/detail?r=5aecb986a5a0

Revision: dde1f536d820
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:52 2014 UTC
Log:      svnmeta: use self.defaultmessage instead of ui.config call
https://code.google.com/p/hgsubversion/source/detail?r=dde1f536d820

Revision: 6d6345604772
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:52 2014 UTC
Log:      svnmeta: call self.getmessage instead of util
https://code.google.com/p/hgsubversion/source/detail?r=6d6345604772

Revision: f2d1c59738f9
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:52 2014 UTC
Log:      replay: call meta.getmessage instead of util
https://code.google.com/p/hgsubversion/source/detail?r=f2d1c59738f9

Revision: 8cec74df235a
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:52 2014 UTC
Log:      wrappers: call meta.getmessage instead of util
https://code.google.com/p/hgsubversion/source/detail?r=8cec74df235a

Revision: 3e6013940854
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:52 2014 UTC
Log:      stupid: call meta.getmessage instead of util
https://code.google.com/p/hgsubversion/source/detail?r=3e6013940854

Revision: 1553a4b61221
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:52 2014 UTC
Log:      util: remove unused getmessage function
https://code.google.com/p/hgsubversion/source/detail?r=1553a4b61221

==============================================================================
Revision: ada9b39a9eb8
Branch:   default
Author:   Augie Fackler <raf@...>
Date:     Mon Dec  8 21:49:52 2014 UTC
Log:      stupid: remove code that's only used by hg < 1.9

Mercurial 1.9 is over three years old at this point, so I'm willing to
drop this code, as there's been an Ubuntu LTS release since then.
https://code.google.com/p/hgsubversion/source/detail?r=ada9b39a9eb8

Modified:
  /hgsubversion/stupid.py

==============================================================================
Revision: 2ae577a4cd56
Branch:   default
Author:   Augie Fackler <raf@...>
Date:     Mon Dec  8 21:50:22 2014 UTC
Log:      stupid: dedent some code

Done as two changes to make the previous change slightly easier to review.
https://code.google.com/p/hgsubversion/source/detail?r=2ae577a4cd56

Modified:
  /hgsubversion/stupid.py

==============================================================================
Revision: b5520673f6f2
Branch:   stable
Author:   Sean Farley <sean.michael.farley@...>
Date:     Wed Dec 10 22:04:55 2014 UTC
Log:      pull: adapt from upstream changes to transactions

Mercurial rev 52db731b964d introduced a transaction manager upstream. This
means that the closetransaction and releasetransaction methods on the pull
operation have gone away.

Code mostly based on Siddharth Agarwal's work on hg-git.
https://code.google.com/p/hgsubversion/source/detail?r=b5520673f6f2

Modified:
  /hgsubversion/wrappers.py

==============================================================================
Revision: c791efb7082a
Branch:   default
Author:   Augie Fackler <raf@...>
Date:     Thu Dec 11 03:47:18 2014 UTC
Log:      Merge with stable.
https://code.google.com/p/hgsubversion/source/detail?r=c791efb7082a

Modified:
  /hgsubversion/wrappers.py

==============================================================================
Revision: e74fad41077b
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:51 2014 UTC
Log:      svnmeta: copy util.getmessage to here so we can refactor

This doesn't do anything currently but will be used in upcoming patches to
refactor the call to ui.config.
https://code.google.com/p/hgsubversion/source/detail?r=e74fad41077b

Modified:
  /hgsubversion/svnmeta.py

==============================================================================
Revision: 5aecb986a5a0
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:51 2014 UTC
Log:      svnmeta: generate cached defaultmessage property
https://code.google.com/p/hgsubversion/source/detail?r=5aecb986a5a0

Modified:
  /hgsubversion/svnmeta.py

==============================================================================
Revision: dde1f536d820
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:52 2014 UTC
Log:      svnmeta: use self.defaultmessage instead of ui.config call
https://code.google.com/p/hgsubversion/source/detail?r=dde1f536d820

Modified:
  /hgsubversion/svnmeta.py

==============================================================================
Revision: 6d6345604772
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:52 2014 UTC
Log:      svnmeta: call self.getmessage instead of util
https://code.google.com/p/hgsubversion/source/detail?r=6d6345604772

Modified:
  /hgsubversion/svnmeta.py

==============================================================================
Revision: f2d1c59738f9
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:52 2014 UTC
Log:      replay: call meta.getmessage instead of util
https://code.google.com/p/hgsubversion/source/detail?r=f2d1c59738f9

Modified:
  /hgsubversion/replay.py

==============================================================================
Revision: 8cec74df235a
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:52 2014 UTC
Log:      wrappers: call meta.getmessage instead of util
https://code.google.com/p/hgsubversion/source/detail?r=8cec74df235a

Modified:
  /hgsubversion/wrappers.py

==============================================================================
Revision: 3e6013940854
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:52 2014 UTC
Log:      stupid: call meta.getmessage instead of util
https://code.google.com/p/hgsubversion/source/detail?r=3e6013940854

Modified:
  /hgsubversion/stupid.py

==============================================================================
Revision: 1553a4b61221
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:52 2014 UTC
Log:      util: remove unused getmessage function
https://code.google.com/p/hgsubversion/source/detail?r=1553a4b61221

Modified:
  /hgsubversion/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.

Sean Farley | 10 Dec 23:16 2014
Picon

[PATCH 1 of 8] svnmeta: copy util.getmessage to here so we can refactor

# HG changeset patch
# User Sean Farley <sean.michael.farley@...>
# Date 1395678051 18000
#      Mon Mar 24 11:20:51 2014 -0500
# Node ID 871b0977a649d2147526dd82d33884827e87c73a
# Parent  db50b6717273ee8330f3cf7ce471f1c5331f4083
svnmeta: copy util.getmessage to here so we can refactor

This doesn't do anything currently but will be used in upcoming patches to
refactor the call to ui.config.

diff --git a/hgsubversion/svnmeta.py b/hgsubversion/svnmeta.py
--- a/hgsubversion/svnmeta.py
+++ b/hgsubversion/svnmeta.py
 <at>  <at>  -364,10 +364,24  <at>  <at>  class SVNMeta(object):

      <at> property
     def taglocations(self):
         return self.layoutobj.taglocations(self.metapath)

+    def getmessage(self, rev):
+        msg = rev.message
+
+        if msg:
+            try:
+                msg.decode('utf-8')
+                return msg
+
+            except UnicodeDecodeError:
+                # ancient svn failed to enforce utf8 encoding
+                return msg.decode('iso-8859-1').encode('utf-8')
+        else:
+            return self.ui.config('hgsubversion', 'defaultmessage', '')
+
     def get_path_tag(self, path):
         """If path could represent the path to a tag, returns the
         potential (non-empty) tag name. Otherwise, returns None

         Note that it's only a tag if it was copied from the path '' in a branch

--

-- 
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.


Gmane