hg push branch against subversion remote repository results "UnboundLocalError: local variable 'newtipctx' referenced before assignment"

Create issue
Issue #330 new
sturton created an issue

hg push branch containg 2 committed changes against subversion remote repository resulted in:-

a) first commit appearing in Subversion repository

b) Command failing with error "UnboundLocalError: local variable 'newtipctx' referenced before assignment"

On second push attempt, the command completed without error and the second change appeared in the subversion repository.

=== Full Error Text === " hg push -b branch-name .... resolving manifests no changes, revision 111 skipped resolving manifests getting triggers/oper/op_ppd_trg_erpdrprepayment_uir.sql triggers/oper/op_ppd_trg_erpdrprepayment_uir.sql rebase merging completed 2 changesets found saved backup bundle to C:\development\database\Database-hg.hg\strip-backup\d1d2813c2f5f-backup.hg 2 changesets found adding branch adding changesets adding manifests adding file changes added 2 changesets with 2 changes to 1 files rebase completed 1 revisions have been skipped unknown exception encountered, please report by visiting http://mercurial.selenic.com/wiki/BugTracker Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] Mercurial Distributed SCM (version 2.0) Extensions loaded: fetch, progress, hgk, hgcr-gui-qt, pager, rebase, color, record, transplant, convert, graphlog, hgsubversion Traceback (most recent call last): File "hg", line 42, in <module> File "mercurial\dispatch.pyo", line 27, in run File "mercurial\dispatch.pyo", line 64, in dispatch File "mercurial\dispatch.pyo", line 87, in _runcatch File "mercurial\dispatch.pyo", line 684, in _dispatch File "mercurial\dispatch.pyo", line 466, in runcommand File "mercurial\extensions.pyo", line 184, in wrap File "hgext\color.pyo", line 373, in colorcmd File "mercurial\extensions.pyo", line 184, in wrap File "hgext\pager.pyo", line 107, in pagecmd File "mercurial\dispatch.pyo", line 738, in _runcommand File "mercurial\dispatch.pyo", line 692, in checkargs File "mercurial\dispatch.pyo", line 681, in <lambda> File "mercurial\util.pyo", line 454, in check File "mercurial\extensions.pyo", line 139, in wrap File "mercurial\util.pyo", line 454, in check File "c:\applications\hg\hgsvn\hgsubversion\wrappers.py", line 526, in generic return orig(ui, repo, *args, opts) File "mercurial\util.pyo", line 454, in check File "mercurial\commands.pyo", line 4307, in push File "c:\applications\hg\hgsvn\hgsubversion\svnrepo.py", line 69, in wrapper return fn(self, args, opts) File "c:\applications\hg\hgsvn\hgsubversion\svnrepo.py", line 84, in push return wrappers.push(self, remote, force, revs) File "c:\applications\hg\hgsvn\hgsubversion\wrappers.py", line 225, in push newtip = newtipctx.node()UnboundLocalError: local variable 'newtipctx' referenced before assignment* [Commandline reappears] ...


== Environment == hg --version Mercurial Distributed SCM (version 2.0) (see http://mercurial.selenic.com for more information)

Copyright (C) 2005-2011 Matt Mackall and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

svn --version svn, version 1.7.0 (r1176462) compiled Oct 14 2011, 12:05:16

Copyright (C) 2011 The Apache Software Foundation. This software consists of contributions made by many people; see the NOTICE file for more information. Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

  • ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  • handles 'http' scheme
  • handles 'https' scheme
  • ra_svn : Module for accessing a repository using the svn network protocol.
  • with Cyrus SASL authentication
  • handles 'svn' scheme
  • ra_local : Module for accessing a repository on local disk.
  • handles 'file' scheme
  • ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  • handles 'http' scheme
  • handles 'https' scheme

Comments (0)

  1. Log in to comment