hgsubversion | 13 Apr 19:24 2015

push by durin42 - add minimum methods for matcher... on 2015-04-13 17:24 GMT

Revision: fd3461f86582
Branch:   default
Author:   Shun-ichi GOTO <shunichi.goto@...>
Date:     Mon Apr 13 13:24:41 2015 UTC
Log:      add minimum methods for matcher

By changeset 24820:5693c834bcb4 in mercurial crew, it become that matcher
object need to implement some common methods, bad(), always(), iseact()
and anypats(). So the PrefixMatch class should be implement them.
https://code.google.com/p/hgsubversion/source/detail?r=fd3461f86582

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.

Shun-ichi Goto | 13 Apr 15:24 2015
Picon

[PATCH] add minimum methods for matcher

# HG changeset patch
# User Shun-ichi GOTO <shunichi.goto@...>
# Date 1428931481 -32400
#      Mon Apr 13 22:24:41 2015 +0900
# Node ID fd3461f865826f682202fe199715bd343266630a
# Parent  a36e87ae23805ad4f636f6b0cdb5b735603bd98a
add minimum methods for matcher

By changeset 24820:5693c834bcb4 in mercurial crew, it become that matcher
object need to implement some common methods, bad(), always(), iseact()
and anypats(). So the PrefixMatch class should be implement them.

diff -r a36e87ae2380 -r fd3461f86582 hgsubversion/util.py
--- a/hgsubversion/util.py	Fri Mar 27 16:44:05 2015 -0700
+++ b/hgsubversion/util.py	Mon Apr 13 22:24:41 2015 +0900
 <at>  <at>  -215,6 +215,18  <at>  <at> 
     def __call__(self, fn):
         return fn.startswith(self.p)

+    def bad(self, f, msg):
+        pass
+
+    def always(self):
+        return False
+
+    def isexact(self):
+        return False
+
+    def anypats(self):
+        return True
(Continue reading)

François Dinel | 5 Apr 21:35 2015
Picon

Crash when cloning SVN tag with "replaced" items, works for branches...

Hi, I found a subversion repository that crashes hgsubversion.

I tried to isolate the bug and came up with a small repository dump that
reproduces the problem. It seems that hgsubversion is able to clone a
repository where some items are "replaced" (svn term...) whereas the
same type of operation crashes hgsubversion for tags.

If I comment out lines 431 to 433 in hgsubversion/editor.py, it won't
crash anymore. But I'm not sure if it can cause problems somewhere else...

Here is a dump illustrating the bug. I'll be happy to help if I can!

Cheers

--

-- 
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.
SVN-fs-dump-format-version: 2

UUID: e91943cf-f56a-7142-9512-086bf4aedaad

Revision-number: 0
Prop-content-length: 56
Content-length: 56

(Continue reading)

hgsubversion | 30 Mar 14:21 2015

2 new revisions pushed by durin42 on 2015-03-30 12:21 GMT

2 new revisions:

Revision: 2061fd988f3f
Branch:   default
Author:   Siddharth Agarwal <sid0@...>
Date:     Fri Mar 27 23:42:50 2015 UTC
Log:      stupid: adapt to Mercurial 3.4 changes...
https://code.google.com/p/hgsubversion/source/detail?r=2061fd988f3f

Revision: a36e87ae2380
Branch:   default
Author:   Siddharth Agarwal <sid0@...>
Date:     Fri Mar 27 23:44:05 2015 UTC
Log:      tests: always compare manifest keys in sorted order...
https://code.google.com/p/hgsubversion/source/detail?r=a36e87ae2380

==============================================================================
Revision: 2061fd988f3f
Branch:   default
Author:   Siddharth Agarwal <sid0@...>
Date:     Fri Mar 27 23:42:50 2015 UTC
Log:      stupid: adapt to Mercurial 3.4 changes

Straightforward API change.
https://code.google.com/p/hgsubversion/source/detail?r=2061fd988f3f

Modified:
  /hgsubversion/stupid.py

==============================================================================
(Continue reading)

Siddharth Agarwal | 28 Mar 01:02 2015

[PATCH 1 of 2] stupid: adapt to Mercurial 3.4 changes

# HG changeset patch
# User Siddharth Agarwal <sid0@...>
# Date 1427499770 25200
#      Fri Mar 27 16:42:50 2015 -0700
# Node ID 2061fd988f3fccdcfc9b241534ab94afe86321ad
# Parent  43a365f5d13cf48776ca830023cb9770303a3e78
stupid: adapt to Mercurial 3.4 changes

Straightforward API change.

diff --git a/hgsubversion/stupid.py b/hgsubversion/stupid.py
--- a/hgsubversion/stupid.py
+++ b/hgsubversion/stupid.py
 <at>  <at>  -194,7 +194,12  <at>  <at> 
         backend = svnbackend(ui, meta.repo, parentctx, store)

         try:
-            ret = patch.patchbackend(ui, backend, patchfp, 0, touched)
+            try:
+                ret = patch.patchbackend(ui, backend, patchfp, 0, files=touched)
+            except TypeError:
+                # Mercurial >= 3.4 have an extra prefix parameter
+                ret = patch.patchbackend(ui, backend, patchfp, 0, '',
+                                         files=touched)
             if ret < 0:
                 raise BadPatchApply('patching failed')
             if ret > 0:

--

-- 
You received this message because you are subscribed to the Google Groups "hgsubversion" group.
(Continue reading)

hgsubversion | 7 Mar 18:39 2015

push by durin42 - Allow changing the path to the trunk on 2015-03-07 17:39 GMT

Revision: 43a365f5d13c
Branch:   default
Author:   Francois Dinel <fdinel@...>
Date:     Fri Feb 20 18:13:03 2015 UTC
Log:      Allow changing the path to the trunk
https://code.google.com/p/hgsubversion/source/detail?r=43a365f5d13c

Modified:
  /hgsubversion/__init__.py
  /hgsubversion/layouts/standard.py
  /hgsubversion/wrappers.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.

François Dinel | 23 Feb 02:57 2015
Picon

[patch] Support custom "trunk" path

# HG changeset patch
# User Francois Dinel
# Date 1424455983 18000
#      Fri Feb 20 13:13:03 2015 -0500
# Branch stable
# Node ID c5c6470939aae282ab6e4611ba991f4c1f4e0f26
# Parent  b13f320ff4e3af4ea4813185275a4a618d74130d
Allow changing the path to the trunk

diff -r b13f320ff4e3 -r c5c6470939aa hgsubversion/__init__.py
--- a/hgsubversion/__init__.py Fri Jan 30 10:59:13 2015 -0500
+++ b/hgsubversion/__init__.py Fri Feb 20 13:13:03 2015 -0500
<at> <at> -77,6 +77,8 <at> <at>
          'list of paths to search for tags in Subversion repositories'),
         ('', 'branchdir', '',
          'path to search for branches in subversion repositories'),
+        ('', 'trunkdir', '',
+         'path to trunk in subversion repositories'),
         ('', 'infix', '',
          'path relative to trunk, branch an tag dirs to import'),
         ('A', 'authors', '',
diff -r b13f320ff4e3 -r c5c6470939aa hgsubversion/layouts/standard.py
--- a/hgsubversion/layouts/standard.py Fri Jan 30 10:59:13 2015 -0500
+++ b/hgsubversion/layouts/standard.py Fri Feb 20 13:13:03 2015 -0500
<at> <at> -28,10 +28,11 <at> <at>
         # the lambda is to ensure nested paths are handled properly
         meta._gen_cachedconfig('taglocations', ['tags'], 'tag_locations',
                                'tagpaths', lambda x: list(reversed(sorted(x))))
+        meta._gen_cachedconfig('trunkdir', 'trunk', 'trunk_dir')
 
      <at> property
     def trunk(self):
-        return 'trunk' + self.meta.infix
+        return self.meta.trunkdir + self.meta.infix
 
     def localname(self, path):
         if path == self.trunk:
<at> <at> -98,7 +99,7 <at> <at>
         if self.localname(candidate) in known_branches:
             return candidate, '/'.join(components)
 
-        if path == 'trunk' or path.startswith('trunk/'):
+        if path == self.meta.trunkdir or path.startswith(self.meta.trunkdir + '/'):
             return self.trunk, path[len(self.trunk) + 1:]
 
         if path.startswith(self.meta.branchdir):
diff -r b13f320ff4e3 -r c5c6470939aa hgsubversion/wrappers.py
--- a/hgsubversion/wrappers.py Fri Jan 30 10:59:13 2015 -0500
+++ b/hgsubversion/wrappers.py Fri Feb 20 13:13:03 2015 -0500
<at> <at> -593,6 +593,7 <at> <at>
     'tagpaths': ('hgsubversion', 'tagpaths'),
     'authors': ('hgsubversion', 'authormap'),
     'branchdir': ('hgsubversion', 'branchdir'),
+    'trunkdir': ('hgsubversion', 'trunkdir'),
     'infix': ('hgsubversion', 'infix'),
     'filemap': ('hgsubversion', 'filemap'),
     'branchmap': ('hgsubversion', 'branchmap'),

--
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 | 10 Feb 22:11 2015

2 new revisions pushed by durin42 on 2015-02-10 21:11 GMT

2 new revisions:

Revision: 62fc5850eb28
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Feb  9 01:32:21 2015 UTC
Log:      svncommads: document the auto layout block
https://code.google.com/p/hgsubversion/source/detail?r=62fc5850eb28

Revision: f1b8029cf8e9
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Feb  9 01:32:36 2015 UTC
Log:      svnmeta: pep8
https://code.google.com/p/hgsubversion/source/detail?r=f1b8029cf8e9

==============================================================================
Revision: 62fc5850eb28
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Feb  9 01:32:21 2015 UTC
Log:      svncommads: document the auto layout block
https://code.google.com/p/hgsubversion/source/detail?r=62fc5850eb28

Modified:
  /hgsubversion/svncommands.py

==============================================================================
Revision: f1b8029cf8e9
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Feb  9 01:32:36 2015 UTC
Log:      svnmeta: pep8
https://code.google.com/p/hgsubversion/source/detail?r=f1b8029cf8e9

Modified:
  /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 | 9 Feb 02:32 2015
Picon

[PATCH 1 of 2] svncommads: document the auto layout block

# HG changeset patch
# User Sean Farley <sean.michael.farley@...>
# Date 1423445541 28800
#      Sun Feb 08 17:32:21 2015 -0800
# Node ID 62fc5850eb2802d84ccda5b05436828c9148888a
# Parent  91eb0ad1376a988b18302266577e9e678cffbf6f
svncommads: document the auto layout block

diff --git a/hgsubversion/svncommands.py b/hgsubversion/svncommands.py
--- a/hgsubversion/svncommands.py
+++ b/hgsubversion/svncommands.py
 <at>  <at>  -182,12 +182,17  <at>  <at>  def _buildmeta(ui, repo, args, partial=F
         if subdir and subdir[-1] == '/':
             subdir = subdir[:-1]
         assert revpath.startswith(subdir), ('That does not look like the '
                                             'right location in the repo.')

+        # meta.layout is a config-cached property so instead of testing for
+        # None we test to see if the layout is 'auto' and, if so, try to guess
+        # the layout based on the commits (where subdir is compared to the
+        # revpath extracted from the commit)
         if meta.layout == 'auto':
-            meta.layout = meta.layout_from_commit(subdir, revpath, ctx.branch())
+            meta.layout = meta.layout_from_commit(subdir, revpath,
+                                                  ctx.branch())
         elif meta.layout == 'single':
             assert (subdir or '/') == revpath, ('Possible layout detection'
                                                 ' defect in replay')

         # write repository uuid if required

--

-- 
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 | 8 Feb 03:29 2015

9 new revisions pushed by durin42 on 2015-02-08 02:29 GMT

9 new revisions:

Revision: 78133c7ec2fc
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:54 2014 UTC
Log:      layouts: add a name property to base
https://code.google.com/p/hgsubversion/source/detail?r=78133c7ec2fc

Revision: 10c87b1dd653
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:55 2014 UTC
Log:      layouts: add a name property to single
https://code.google.com/p/hgsubversion/source/detail?r=10c87b1dd653

Revision: a6d3692a5800
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:55 2014 UTC
Log:      layouts: add a name property to standard
https://code.google.com/p/hgsubversion/source/detail?r=a6d3692a5800

Revision: f5df4bb6f330
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:55 2014 UTC
Log:      layouts: add a name property to custom
https://code.google.com/p/hgsubversion/source/detail?r=f5df4bb6f330

Revision: 80b57ed92544
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:55 2014 UTC
Log:      svnmeta: create a new layoutobj if layout has changed
https://code.google.com/p/hgsubversion/source/detail?r=80b57ed92544

Revision: 5f80c92be718
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:55 2014 UTC
Log:      svncommands: rip out layout logic and use meta object
https://code.google.com/p/hgsubversion/source/detail?r=5f80c92be718

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

Revision: 14dab195b2b4
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:56 2014 UTC
Log:      layouts: update doc string to inform about using the right object
https://code.google.com/p/hgsubversion/source/detail?r=14dab195b2b4

Revision: 91eb0ad1376a
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:56 2014 UTC
Log:      layouts: remove detect.py
https://code.google.com/p/hgsubversion/source/detail?r=91eb0ad1376a

==============================================================================
Revision: 78133c7ec2fc
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:54 2014 UTC
Log:      layouts: add a name property to base
https://code.google.com/p/hgsubversion/source/detail?r=78133c7ec2fc

Modified:
  /hgsubversion/layouts/base.py

==============================================================================
Revision: 10c87b1dd653
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:55 2014 UTC
Log:      layouts: add a name property to single
https://code.google.com/p/hgsubversion/source/detail?r=10c87b1dd653

Modified:
  /hgsubversion/layouts/single.py

==============================================================================
Revision: a6d3692a5800
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:55 2014 UTC
Log:      layouts: add a name property to standard
https://code.google.com/p/hgsubversion/source/detail?r=a6d3692a5800

Modified:
  /hgsubversion/layouts/standard.py

==============================================================================
Revision: f5df4bb6f330
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:55 2014 UTC
Log:      layouts: add a name property to custom
https://code.google.com/p/hgsubversion/source/detail?r=f5df4bb6f330

Modified:
  /hgsubversion/layouts/custom.py

==============================================================================
Revision: 80b57ed92544
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:55 2014 UTC
Log:      svnmeta: create a new layoutobj if layout has changed
https://code.google.com/p/hgsubversion/source/detail?r=80b57ed92544

Modified:
  /hgsubversion/svnmeta.py

==============================================================================
Revision: 5f80c92be718
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:55 2014 UTC
Log:      svncommands: rip out layout logic and use meta object
https://code.google.com/p/hgsubversion/source/detail?r=5f80c92be718

Modified:
  /hgsubversion/svncommands.py

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

Modified:
  /hgsubversion/svnmeta.py

==============================================================================
Revision: 14dab195b2b4
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:56 2014 UTC
Log:      layouts: update doc string to inform about using the right object
https://code.google.com/p/hgsubversion/source/detail?r=14dab195b2b4

Modified:
  /hgsubversion/layouts/__init__.py

==============================================================================
Revision: 91eb0ad1376a
Branch:   default
Author:   Sean Farley <sean.michael.farley@...>
Date:     Mon Mar 24 16:20:56 2014 UTC
Log:      layouts: remove detect.py
https://code.google.com/p/hgsubversion/source/detail?r=91eb0ad1376a

Deleted:
  /hgsubversion/layouts/detect.py
Modified:
  /hgsubversion/layouts/__init__.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 | 7 Feb 01:24 2015
Picon

[PATCH 1 of 9] layouts: add a name property to base

# HG changeset patch
# User Sean Farley <sean.michael.farley@...>
# Date 1395678054 18000
#      Mon Mar 24 11:20:54 2014 -0500
# Node ID 0294355e4911b51b435963c9e8bfcd2fa28152ae
# Parent  cdb1f1923a1ab6ce90170be09c611c47884b2fa9
layouts: add a name property to base

diff --git a/hgsubversion/layouts/base.py b/hgsubversion/layouts/base.py
--- a/hgsubversion/layouts/base.py
+++ b/hgsubversion/layouts/base.py
 <at>  <at>  -15,10 +15,16  <at>  <at>  class BaseLayout(object):
     def __unimplemented(self, method_name):
         raise NotImplementedError(
             "Incomplete layout implementation: %s.%s doesn't implement %s" %
             (self.__module__, self.__name__, method_name))

+     <at> property
+    def name(self):
+        """Return the name of the key for NAME_TO_CLASS so we can easily compute a
+        stale cache."""
+        self.__unimplemented('name')
+
     def localname(self, path):
         """Compute the local name for a branch located at path.

         path should be relative to the repo url.

--

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