hgsubversion | 24 Jul 17:07 2014

11 new revisions pushed by durin42 on 2014-07-24 15:06 GMT

11 new revisions:

Revision: 9fc3557ce85e
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:46 2014 UTC
Log:      svnmeta: turn authors into a lazy property
http://code.google.com/p/hgsubversion/source/detail?r=9fc3557ce85e

Revision: 54d42e59b29c
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:47 2014 UTC
Log:      maps: load commandline tagmap in __init__...
http://code.google.com/p/hgsubversion/source/detail?r=54d42e59b29c

Revision: 20c28c511551
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:47 2014 UTC
Log:      svnmeta: turn tagmap into a lazy property
http://code.google.com/p/hgsubversion/source/detail?r=20c28c511551

Revision: a0c6dbd9afbb
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:47 2014 UTC
Log:      maps: change tagmap to initialize with an svnmeta object...
http://code.google.com/p/hgsubversion/source/detail?r=a0c6dbd9afbb

(Continue reading)

Sean Farley | 24 Jul 00:38 2014
Picon

[PATCH 01 of 11] svnmeta: turn authors into a lazy property

# HG changeset patch
# User Sean Farley <sean.michael.farley@...>
# Date 1395678046 18000
#      Mon Mar 24 11:20:46 2014 -0500
# Node ID b68a97d57857c035658aeda6bcc15772758149b8
# Parent  aa8b72bd1320a4a339fb2b43868df520edce7528
svnmeta: turn authors into a lazy property

diff --git a/hgsubversion/svnmeta.py b/hgsubversion/svnmeta.py
--- a/hgsubversion/svnmeta.py
+++ b/hgsubversion/svnmeta.py
 <at>  <at>  -49,11 +49,11  <at>  <at>  class SVNMeta(object):
         self._tags = None
         self._layout = layouts.detect.layout_from_file(self.metapath,
                                                        ui=self.repo.ui)
         self._layoutobj = None

-        self.authors = maps.AuthorMap(self)
+        self._authors = None

         self.branchmap = maps.BranchMap(self.ui, self.branchmap_file)
         if branchmap:
             self.branchmap.load(branchmap)

 <at>  <at>  -230,10 +230,16  <at>  <at>  class SVNMeta(object):
      <at> property
     def authors_file(self):
         return os.path.join(self.metapath, 'authors')

      <at> property
(Continue reading)

hgsubversion | 16 Jul 21:22 2014

10 new revisions pushed by durin42 on 2014-07-16 19:21 GMT

10 new revisions:

Revision: 1414cdafa7af
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Jun  2 21:31:54 2014 UTC
Log:      svnmeta: explicitly test for None...
http://code.google.com/p/hgsubversion/source/detail?r=1414cdafa7af

Revision: b1a6edc78bfb
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Tue Jun  3 00:53:49 2014 UTC
Log:      compathacks: add wrapper for memfilectx
http://code.google.com/p/hgsubversion/source/detail?r=b1a6edc78bfb

Revision: 955f7173e498
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Tue Jun  3 00:09:11 2014 UTC
Log:      svnmeta: call makememfilectx
http://code.google.com/p/hgsubversion/source/detail?r=955f7173e498

Revision: 4b6b101474e6
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Tue Jun  3 00:09:44 2014 UTC
Log:      replay: call makememfilectx
http://code.google.com/p/hgsubversion/source/detail?r=4b6b101474e6

(Continue reading)

Sean Farley | 16 Jul 01:35 2014
Picon

[PATCH 1 of 9] svnmeta: explicitly test for None

# HG changeset patch
# User Sean Farley <sean.michael.farley@...>
# Date 1401744714 18000
#      Mon Jun 02 16:31:54 2014 -0500
# Node ID 776cbc353ccce5f540a7b960870145d8a991dd38
# Parent  87837284917582689a552de2a7bc4dede3dbfe75
svnmeta: explicitly test for None

There was a slight error in the way we were checking the value of 'c' via 'if
c'. If the type of 'c' is a bool then this could incorrectly be false. Instead,
we check for None explicitly. Nothing in production should have been affected
by this yet since this was only a problem with patches not yet released.

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

             # load the value from disk
             val = util.load(f, default=default)

             # prefer the non-default, and the one sent from command-line
-            if c and c != val and c != default:
+            if c is not None and c != val and c != default:
                 val = c

             # set the value as the one from disk (or default if not found)
             setattr(self, varname, val)

--

-- 
(Continue reading)

Sean Farley | 17 Jun 00:00 2014
Picon

[PATCH 1 of 9] svnmeta: explicitly test for None

# HG changeset patch
# User Sean Farley <sean.michael.farley@...>
# Date 1401744714 18000
#      Mon Jun 02 16:31:54 2014 -0500
# Node ID 776cbc353ccce5f540a7b960870145d8a991dd38
# Parent  87837284917582689a552de2a7bc4dede3dbfe75
svnmeta: explicitly test for None

There was a slight error in the way we were checking the value of 'c' via 'if
c'. If the type of 'c' is a bool then this could incorrectly be false. Instead,
we check for None explicitly. Nothing in production should have been affected
by this yet since this was only a problem with patches not yet released.

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

             # load the value from disk
             val = util.load(f, default=default)

             # prefer the non-default, and the one sent from command-line
-            if c and c != val and c != default:
+            if c is not None and c != val and c != default:
                 val = c

             # set the value as the one from disk (or default if not found)
             setattr(self, varname, val)

--

-- 
(Continue reading)

stephanie.lyne.legault | 27 May 21:26 2014
Picon

Re: hgsubversion build issues on MacOsX - subvertpy won't build

Thanks Augie, this set me on the right path. I re-installed subersion17 through brew using the --with-python install option. But that wasn't quite enough. A googling brought up this result:


where you also have to add the bindings to the Python install. After doing both these things, I was able to build hgsubversion properly. 

I'm attempting my first clone, and it seems to be working (fingers crossed!) It's definitely going better than the last time, when I built against subversion 1.8.

--
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 | 26 May 02:31 2014

9 new revisions pushed by durin42 on 2014-05-26 00:31 GMT

9 new revisions:

Revision: 38dd8721fb0d
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:45 2014 UTC
Log:      maps: remove trailing whitespace
http://code.google.com/p/hgsubversion/source/detail?r=38dd8721fb0d

Revision: 0ef719f4c371
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:45 2014 UTC
Log:      svnmeta: add defaultauthors property
http://code.google.com/p/hgsubversion/source/detail?r=0ef719f4c371

Revision: 5df842451d7e
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:45 2014 UTC
Log:      svnmeta: add caseignoreauthors property
http://code.google.com/p/hgsubversion/source/detail?r=5df842451d7e

Revision: f0d5c03a71b9
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:45 2014 UTC
Log:      svnmeta: add defaulthost property
http://code.google.com/p/hgsubversion/source/detail?r=f0d5c03a71b9

Revision: 23a845fbfc6a
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:46 2014 UTC
Log:      svnmeta: use generator for usebranchnames property
http://code.google.com/p/hgsubversion/source/detail?r=23a845fbfc6a

Revision: a55339d35066
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:46 2014 UTC
Log:      maps: load commandline authormap in __init__...
http://code.google.com/p/hgsubversion/source/detail?r=a55339d35066

Revision: 49791c40a8a5
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:46 2014 UTC
Log:      maps: change authormap to initialize with an svnmeta object...
http://code.google.com/p/hgsubversion/source/detail?r=49791c40a8a5

Revision: a5641006e338
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:46 2014 UTC
Log:      maps: use meta.defaultauthors intead of accessing ui directly
http://code.google.com/p/hgsubversion/source/detail?r=a5641006e338

Revision: 878372849175
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:46 2014 UTC
Log:      maps: use meta.caseignoreauthors intead of accessing ui directly
http://code.google.com/p/hgsubversion/source/detail?r=878372849175

==============================================================================
Revision: 38dd8721fb0d
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:45 2014 UTC
Log:      maps: remove trailing whitespace
http://code.google.com/p/hgsubversion/source/detail?r=38dd8721fb0d

Modified:
  /hgsubversion/maps.py

==============================================================================
Revision: 0ef719f4c371
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:45 2014 UTC
Log:      svnmeta: add defaultauthors property
http://code.google.com/p/hgsubversion/source/detail?r=0ef719f4c371

Modified:
  /hgsubversion/svnmeta.py

==============================================================================
Revision: 5df842451d7e
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:45 2014 UTC
Log:      svnmeta: add caseignoreauthors property
http://code.google.com/p/hgsubversion/source/detail?r=5df842451d7e

Modified:
  /hgsubversion/svnmeta.py

==============================================================================
Revision: f0d5c03a71b9
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:45 2014 UTC
Log:      svnmeta: add defaulthost property
http://code.google.com/p/hgsubversion/source/detail?r=f0d5c03a71b9

Modified:
  /hgsubversion/svnmeta.py

==============================================================================
Revision: 23a845fbfc6a
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:46 2014 UTC
Log:      svnmeta: use generator for usebranchnames property
http://code.google.com/p/hgsubversion/source/detail?r=23a845fbfc6a

Modified:
  /hgsubversion/svnmeta.py

==============================================================================
Revision: a55339d35066
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:46 2014 UTC
Log:      maps: load commandline authormap in __init__

Funcationally, this is the same as before but consolidates the logic to its  
own
object so we later refactor all the map objects to inherit from a common  
base
object.
http://code.google.com/p/hgsubversion/source/detail?r=a55339d35066

Modified:
  /hgsubversion/maps.py
  /hgsubversion/svnmeta.py

==============================================================================
Revision: 49791c40a8a5
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:46 2014 UTC
Log:      maps: change authormap to initialize with an svnmeta object

This refactoring will help us break AuthorMaps access of global options via
ui.config allowing us to use svnmeta as the central store for reading and
writing configuration options.
http://code.google.com/p/hgsubversion/source/detail?r=49791c40a8a5

Modified:
  /hgsubversion/maps.py
  /hgsubversion/svnmeta.py
  /tests/test_fetch_mappings.py

==============================================================================
Revision: a5641006e338
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:46 2014 UTC
Log:      maps: use meta.defaultauthors intead of accessing ui directly
http://code.google.com/p/hgsubversion/source/detail?r=a5641006e338

Modified:
  /hgsubversion/maps.py

==============================================================================
Revision: 878372849175
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:46 2014 UTC
Log:      maps: use meta.caseignoreauthors intead of accessing ui directly
http://code.google.com/p/hgsubversion/source/detail?r=878372849175

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.

Augie Fackler | 26 May 02:14 2014

Re: hgsubversion build issues on MacOsX - subvertpy won't build


On May 21, 2014, at 11:49 AM, stephanie.lyne.legault@... wrote:

> Hi,
> 
> I'm trying to use hgsubversion to connect to a Subversion server at work. 
> I'm working on MacOsX 10.8.5. I initially installed hgsubversion through 
> MacPorts and it worked - sort of. The plugin was installed and usable. 
> However, MacPorts forced an upgrade of svn from my current version (1.7.14) 
> to 1.8.x. The svn server I'm connecting to is not compatible with the svn 
> 1.8 client and my initial "hg clone" of a branch failed. I assume this is 
> the reason why - the error was sort of cryptic about the server refusing a 
> method request (sorry, I don't have the error available anymore).
> 
> I subsequently uninstalled the MacPorts packages and decided to build 
> hgsubversion myself - I figured I could build it against svn 1.7 and then 
> maybe it would work.
> 
> The first thing I did was install SWIG. The SWIG installation worked, and 
> it installed SWIG into /usr/local/share/swig.
> 
> So coming in to build hgsubversion I have the following:
> 
> Subversion 1.7 installed in /usr/local/opt/subversion17
> SWIG 3.0.0 installed in /usr/local/share/swig/3.0.0
> hgsubversion cloned into ~/Development/hgsubversion
> 
> At this point, I ran "sudo python ./setup.py install" from the hgsubversion 
> directory. The installation script does not seem to find the SWIG 
> installation and it tries to install subvertpy. The subvertpy installation 
> fails with the following error:

The easiest solution is probably to use homebrew or macports to install Subversion with SWIG bindings. I
believe the incantation is 'brew install subversion --python' (or maybe subversion16 - I have some foggy
recollection of problems with getting homebrew to do the right thing with newer Subversions...)

Good luck!

> 
> Searching for subvertpy>=0.7.4
> Reading https://pypi.python.org/simple/subvertpy/
> Reading http://launchpad.net/subvertpy
> Reading http://samba.org/~jelmer/subvertpy
> Best match: subvertpy 0.9.1
> Downloading 
> https://pypi.python.org/packages/source/s/subvertpy/subvertpy-0.9.1.tar.gz#md5=ed57a20d947ab0776381d8be506ffe66
> Processing subvertpy-0.9.1.tar.gz
> Writing /tmp/easy_install-AqM5SP/subvertpy-0.9.1/setup.cfg
> Running subvertpy-0.9.1/setup.py -q bdist_egg --dist-dir 
> /tmp/easy_install-AqM5SP/subvertpy-0.9.1/egg-dist-tmp-poNZSZ
> clang: error: unknown argument: '-mno-fused-madd' 
> [-Wunused-command-line-argument-hard-error-in-future]
> clang: note: this will be a hard error (cannot be downgraded to a warning) 
> in the future
> error: Setup script exited with error: command 'clang' failed with exit 
> status 1
> 
> I tried downloading subvertpy myself and building it, and get the same 
> error. Unfortunately I am not a "python person" and my attempts to figure 
> out where in the scripts clang is being called with this invalid option 
> were fruitless.
> 
> So I guess I'm really asking for help to get the plugin building. Is there 
> something special I need to do to get the hgsubversion build scripts to 
> recognize my SWIG installation? Some environment variable, or an addition 
> to my PATH? Maybe if we take subvertpy out of the equation it will build…
> 
> Thanks,
> 
> Stephanie
> 
> 
> -- 
> 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.

Augie Fackler | 26 May 02:11 2014

Re: Unable to clone svn repo with svn+ssh schema


On May 23, 2014, at 6:30 PM, nwhite@... wrote:

> I have a svn repo which is accessed using svn+ssh://user <at> host/repo. On that 
> server user is set up with an authorized keys file whose entires start 
> svnserve. Eg:
> 
> command="svnserve -t -r e:/repos --tunnel-user=foo",no-port-forwarding…

what config file is that in?

> This setup works great with all subversion clients.
> 
> I am trying to clone the repos into hg. My Mercurial client environment is:
> 
> Windows 7
> TortoiseHG 3.0 
> Python 2.7 MSI installed
> hgsubversion (clone of tip today)
> 
> My ssh key is cached in PAGENT. I've verified that I can clone existing HG 
> repos using it. When I try to clone a SVN repo I get the following:
> 
>> hg clone svn+ssh://hguser <at> host/path1/trunk/path2 path2
> Illegal command "svnserve -t"
> abort: To better debug SSH connection problems, remove the -q option from 
> 'ssh' in the [tunnels] section of your Subversion configuration file.

This /looks/ to me like it's trying to exec() a binary named "svnserve -t" - smells like a config problem, but
I'm not sure where.

> 
> Thoughts?

I'm afraid you're well outside my realm of experience here (windows, and a command override somewhere in
your ssh or svn config). I'm having trouble even coming up with informed guesses :(

> 
> TIA,
> 
> -Noah
> 
> 
> 
> -- 
> 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 | 19 May 23:47 2014
Picon

[PATCH 1 of 9] maps: remove trailing whitespace

# HG changeset patch
# User Sean Farley <sean.michael.farley@...>
# Date 1395678045 18000
#      Mon Mar 24 11:20:45 2014 -0500
# Node ID 596042a1f58839cbfd69d1f4cddc696f2eaef954
# Parent  30b2139c3931f3b36b06db86378bc0f200bff108
maps: remove trailing whitespace

diff --git a/hgsubversion/maps.py b/hgsubversion/maps.py
--- a/hgsubversion/maps.py
+++ b/hgsubversion/maps.py
 <at>  <at>  -12,11 +12,11  <at>  <at>  class AuthorMap(dict):
     '''A mapping from Subversion-style authors to Mercurial-style
     authors, and back. The data is stored persistently on disk.

     If the 'hgsubversion.defaultauthors' configuration option is set to false,
     attempting to obtain an unknown author will fail with an Abort.
-    
+
     If the 'hgsubversion.caseignoreauthors' configuration option is set to true,
     the userid from Subversion is always compared lowercase.
     '''

     def __init__(self, ui, path, defaulthost=None):

--

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

STF | 8 May 23:10 2014
Picon

What is the official repostiory URL to hgsubversion extension?

I'm wondering what the official (ie most up-to-date) repository URL to hgsubversion extension is. I have found two such URL's:
https://bitbucket.org/durin42/hgsubversion/
https://hgsubversion.googlecode.com/hg/

In case you're asking how I came across these URL's, I found them at the follow page hosted at Mercurial's official website.  No idea if this page is up to date or not:
http://mercurial.selenic.com/wiki/HgSubversion

If these two URL's are both official, ie up-to-date, I would be curious to know how you keep them in sync.

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

Gmane