Patchwork [05,of,10,V2] branchmap: create a mercurial.branchmap module

login
register
mail settings
Submitter Pierre-Yves David
Date Dec. 20, 2012, 2:08 p.m.
Message ID <a43f6900d52ce07f908f.1356012515@crater2.logilab.fr>
Download mbox | patch
Permalink /patch/207/
State Accepted
Commit bcee63733aad05778279f784a70937f6f9012b69
Headers show

Comments

Pierre-Yves David - Dec. 20, 2012, 2:08 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1355924613 -3600
# Node ID a43f6900d52ce07f908fc49dcf96549a0db8cf07
# Parent  49e81a2c56e10861cc907520e734e63f02cbf18a
branchmap: create a mercurial.branchmap module

This is the foundation stone for an extraction of branches map logic from local
repository class.  Most of the branches map logic have very few caller and
therefor does not fit in the current criteria for code held by the localrepo
class. Important change will be made to this code in relation with revision
filtering. So we extract it in a dedicated module before adding additional
complexity.


Follow up commit do the actual code movement.

Patch

diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py
new file mode 100644
--- /dev/null
+++ b/mercurial/branchmap.py
@@ -0,0 +1,6 @@ 
+# branchmap.py - logic to computes, maintain and stores branchmap for local repo
+#
+# Copyright 2005-2007 Matt Mackall <mpm at selenic.com>
+#
+# This software may be used and distributed according to the terms of the
+# GNU General Public License version 2 or any later version.