Commits

abudden  committed 475215a

Transfer from Git to Mercurial: updated documentation and distribution script.

  • Participants
  • Parent commits 42a5f7c

Comments (0)

Files changed (4)

+syntax: glob
+
+.*.swp
+*.pyc
+types_*.taghl
+doc/tags
+sh.exe.stackdump
+plugin/TagHighlight/logdict*
+plugin/TagHighlight/warnTagHighlight.txt
+plugin/TagHighlight/build/
+plugin/TagHighlight/Compiled/
+dist/*.zip
 
   http://www.cgtk.co.uk/taghighlight/install
 
-Detailed documentation can be found in [doc/TagHighlight.txt](https://github.com/abudden/TagHighlight/blob/master/doc/TagHighlight.txt).
+Detailed documentation can be found in [doc/TagHighlight.txt](https://bitbucket.org/abudden/TagHighlight/src/default/doc/TagHighlight.txt).

File dist/make_taghighlight_release.py

 import socket
 hostname = socket.gethostname()
 
-GIT=["git"]
+HG=["hg"]
 
 # Recursive glob function, from
 # http://stackoverflow.com/questions/2186525/use-a-glob-to-find-files-recursively-in-python#2186565
     fh.close()
     return release
 
-version_info_initial = ['log','-1',"--format=format:release_revid:%H%nrelease_date:%ad","--date=iso"]
-clean_info = ['status', '--porcelain']
+version_info_initial = ['log','-1','--template=release_revid:{node}\nrelease_date:{date|isodate}']
+clean_info = ['status']
 
 def GenerateVersionInfo():
     version_file = os.path.join(vimfiles_dir,'plugin/TagHighlight/data/version_info.txt')
 
-    args = GIT + clean_info
+    args = HG + clean_info
     p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
     (stdout,stderr) = p.communicate()
 
         clean = True
         clean_line = "release_clean:1"
 
-    args = GIT + version_info_initial
+    args = HG + version_info_initial
     p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
     (stdout,stderr) = p.communicate()
 
     MakeCompiled(pyexe, pyinstaller_path, 'taghighlight_r{0}_linux.zip'.format(r), 'Linux')
 
 def CheckInChanges(r):
-    args = GIT+['add','plugin/TagHighlight/data/release.txt']
+    args = HG+['commit','-m','Release build {0}'.format(r)]
     p = subprocess.Popen(args)
     (stdout,stderr) = p.communicate()
-    args = GIT+['commit','-m','Release build {0}'.format(r)]
+    args = HG+['tag','taghighlight-release-{0}'.format(r)]
     p = subprocess.Popen(args)
     (stdout,stderr) = p.communicate()
-    args = GIT+['tag','taghighlight-release-{0}'.format(r)]
-    p = subprocess.Popen(args)
-    (stdout,stderr) = p.communicate()
-    args = GIT+['push','origin','master','--tags']
+    args = HG+['push']
     p = subprocess.Popen(args)
     (stdout,stderr) = p.communicate()
 
         CheckInChanges(new_release)
         PublishReleaseVersion()
     else:
-        print("Distribution not clean: check into Git before making release.")
+        print("Distribution not clean: check into Mercurial before making release.")
         os.remove(version_file)
 
 

File doc/TagHighlight.txt

 
 	The plugin is distribute as source code (binaries of the python components
 	are also available for computers that do not have python installed) The
-	source code is managed using the Git version control system and is
-	available on github at:
+	source code is managed using the Mercurial version control system and is
+	available on bitbucket at:
 >
-		https://github.com/abudden/taghighlight
+		https://bitbucket.org/abudden/TagHighlight
+<
+	For those that prefer Git to Mercurial, it is also mirrored on github at:
+>
+		https://github.com/abudden/TagHighlight
 <
 
 ------------------------------------------------------------------------------
 	7. Test your new language!
 
 	8. Send me a copy for inclusion in the main distribution.  If you're
-	   sending it to me as a github pull request, it would help enormously if
-	   you could also also:
+	   sending it to me as a bitbucket or github pull request, it would help
+	   enormously if you could also also:
 	   
 	   * Update the list of languages (|TagHighlight-languages|) in this
 	     file.
-	   * Update the list of languages in README.md (shown on the github
-	     front page).
+	   * Update the list of languages in README.md (shown on the bitbucket
+	     and github front pages).
 	   * Add a note in the latest entry in the change log in this file
 	     (|TagHighlight-history|).  If there isn't an entry there for an
 		 unreleased version, please add one (something like
 x.x.x: xxth Xxxxxxxx 2012  : Fixed globpath to prevent use of wildignore
                              option (thanks to Vincent).  Added support for
                              Javascript (thanks to Piotr Yordanov).
+                             Transferred source repository from git to
+                             mercurial (will maintain git mirror on github).
 
 2.1.5: 20th February 2012  : Added support for Scala (thanks to Lee Gauthier).